diff options
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/node.h b/src/node.h index 17eae72e9c..6568085335 100644 --- a/src/node.h +++ b/src/node.h @@ -201,10 +201,17 @@ typedef intptr_t ssize_t; namespace node { +class IsolateData; +class Environment; + // TODO(addaleax): Officially deprecate this and replace it with something // better suited for a public embedder API. NODE_EXTERN int Start(int argc, char* argv[]); +// Tear down Node.js while it is running (there are active handles +// in the loop and / or actively executing JavaScript code). +NODE_EXTERN int Stop(Environment* env); + // TODO(addaleax): Officially deprecate this and replace it with something // better suited for a public embedder API. NODE_EXTERN void Init(int* argc, @@ -239,9 +246,6 @@ class NODE_EXTERN ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { NODE_EXTERN ArrayBufferAllocator* CreateArrayBufferAllocator(); NODE_EXTERN void FreeArrayBufferAllocator(ArrayBufferAllocator* allocator); -class IsolateData; -class Environment; - class NODE_EXTERN MultiIsolatePlatform : public v8::Platform { public: ~MultiIsolatePlatform() override { } |