summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-thread-termination.cc
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2022-04-12 11:10:15 +0200
committerMichaël Zasso <targos@protonmail.com>2022-04-12 22:08:39 +0200
commitfd4f80ce54d7f7b7503e0999f6a9d293d493846d (patch)
tree00fba34b8aabeb481c7128fccee635719ee44a3b /deps/v8/test/cctest/test-thread-termination.cc
parent73d53fe9f56d7ce5de4b9c9ad5257dc601bbce14 (diff)
downloadnode-new-fd4f80ce54d7f7b7503e0999f6a9d293d493846d.tar.gz
deps: update V8 to 10.1.124.6
PR-URL: https://github.com/nodejs/node/pull/42657 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'deps/v8/test/cctest/test-thread-termination.cc')
-rw-r--r--deps/v8/test/cctest/test-thread-termination.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/v8/test/cctest/test-thread-termination.cc b/deps/v8/test/cctest/test-thread-termination.cc
index 30b39a0d73..25352250e9 100644
--- a/deps/v8/test/cctest/test-thread-termination.cc
+++ b/deps/v8/test/cctest/test-thread-termination.cc
@@ -854,6 +854,16 @@ TEST(TerminateConsole) {
isolate, TerminateCurrentThread, DoLoopCancelTerminate);
v8::Local<v8::Context> context = v8::Context::New(isolate, nullptr, global);
v8::Context::Scope context_scope(context);
+ {
+ // setup console global.
+ v8::HandleScope scope(isolate);
+ v8::Local<v8::String> name = v8::String::NewFromUtf8Literal(
+ isolate, "console", v8::NewStringType::kInternalized);
+ v8::Local<v8::Value> console =
+ context->GetExtrasBindingObject()->Get(context, name).ToLocalChecked();
+ context->Global()->Set(context, name, console).FromJust();
+ }
+
CHECK(!isolate->IsExecutionTerminating());
v8::TryCatch try_catch(isolate);
CHECK(!isolate->IsExecutionTerminating());