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-06-09 00:43:21 +0300
committerEugene Ostroukhov <eostroukhov@google.com>2018-06-15 02:29:41 +0300
commit8941fb71a6b82700620fb87c250f731b78cfc78c (patch)
treecbd84d2c0ff62067802a28f38c5a4131d4252fa8 /src/inspector_io.cc
parentbaadc7ade3184560c5fbffe0be6c2446541936f5 (diff)
inspector: stop dragging platform pointer
It is now easily accessible from the Environment Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'src/inspector_io.cc')
-rw-r--r--src/inspector_io.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inspector_io.cc b/src/inspector_io.cc
index 8f861316dad..01d78d177de 100644
--- a/src/inspector_io.cc
+++ b/src/inspector_io.cc
@@ -162,11 +162,11 @@ class DispatchMessagesTask : public v8::Task {
Agent* agent_;
};
-InspectorIo::InspectorIo(Environment* env, v8::Platform* platform,
- const std::string& path, const DebugOptions& options,
- bool wait_for_connect)
+InspectorIo::InspectorIo(Environment* env, const std::string& path,
+ const DebugOptions& options, bool wait_for_connect)
: options_(options), thread_(), state_(State::kNew),
- parent_env_(env), thread_req_(), platform_(platform),
+ parent_env_(env), thread_req_(),
+ platform_(parent_env_->isolate_data()->platform()),
dispatching_messages_(false), script_name_(path),
wait_for_connect_(wait_for_connect), port_(-1),
id_(GenerateID()) {