From a7113048e36476b6c231b52a246dc52f59cdf1e0 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Sun, 6 Oct 2019 11:40:24 +0200 Subject: [PATCH] worker: do not use two-arg NewIsolate PR-URL: https://github.com/nodejs/node/pull/29850 Reviewed-By: James M Snell Reviewed-By: David Carlier Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Ben Noordhuis Reviewed-By: Jeremiah Senkpiel --- src/node_worker.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/node_worker.cc b/src/node_worker.cc index 11e44a92757e41..3dce5e25980ce2 100644 --- a/src/node_worker.cc +++ b/src/node_worker.cc @@ -116,7 +116,10 @@ class WorkerThreadData { : w_(w) { CHECK_EQ(uv_loop_init(&loop_), 0); - Isolate* isolate = NewIsolate(w->array_buffer_allocator_.get(), &loop_); + Isolate* isolate = NewIsolate( + w->array_buffer_allocator_.get(), + &loop_, + w->platform_); CHECK_NOT_NULL(isolate); {