Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Ostroukhov <eostroukhov@google.com>2018-09-09 05:45:10 +0300
committerEugene Ostroukhov <eostroukhov@google.com>2018-09-17 19:49:53 +0300
commitab5f789e3f3f726702b86bc7b9661895780d4d12 (patch)
tree3c0e365e048ac7e3b0263c4dba86f59b8798e77a /src/node_worker.h
parentab35194cb0297a85de5384b529f2cc03293d93bb (diff)
inspector: enable Inspector JS API in workers
PR-URL: https://github.com/nodejs/node/pull/22769 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_worker.h')
-rw-r--r--src/node_worker.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_worker.h b/src/node_worker.h
index 33df36e04ce..8491ad221b6 100644
--- a/src/node_worker.h
+++ b/src/node_worker.h
@@ -12,7 +12,7 @@ namespace worker {
// A worker thread, as represented in its parent thread.
class Worker : public AsyncWrap {
public:
- Worker(Environment* env, v8::Local<v8::Object> wrap);
+ Worker(Environment* env, v8::Local<v8::Object> wrap, const std::string& url);
~Worker();
// Run the worker. This is only called from the worker thread.
@@ -52,6 +52,7 @@ class Worker : public AsyncWrap {
uv_loop_t loop_;
DeleteFnPtr<IsolateData, FreeIsolateData> isolate_data_;
DeleteFnPtr<Environment, FreeEnvironment> env_;
+ const std::string url_;
v8::Isolate* isolate_ = nullptr;
DeleteFnPtr<ArrayBufferAllocator, FreeArrayBufferAllocator>
array_buffer_allocator_;