Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Commit

Permalink
[squash] ABI compat
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Oct 4, 2017
1 parent 2c9cb94 commit 995afd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4679,6 +4679,10 @@ int EmitExit(Environment* env) {
}


IsolateData* CreateIsolateData(Isolate* isolate, uv_loop_t* loop) {
return new IsolateData(isolate, loop, nullptr);
}

IsolateData* CreateIsolateData(
Isolate* isolate,
uv_loop_t* loop,
Expand Down
5 changes: 4 additions & 1 deletion src/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,13 @@ class WorkerSupportingPlatform : public v8::Platform {

// If `platform` is passed, it will be used to register new worker instances.
// It can be `nullptr`, in which case creating new workers will not work.
NODE_EXTERN IsolateData* CreateIsolateData(
v8::Isolate* isolate,
struct uv_loop_s* loop);
NODE_EXTERN IsolateData* CreateIsolateData(
v8::Isolate* isolate,
struct uv_loop_s* loop,
WorkerSupportingPlatform* platform = nullptr);
WorkerSupportingPlatform* platform);
NODE_EXTERN void FreeIsolateData(IsolateData* isolate_data);

NODE_EXTERN Environment* CreateEnvironment(IsolateData* isolate_data,
Expand Down

0 comments on commit 995afd6

Please sign in to comment.