Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,6 @@
['tsan == 1', {
'defines': ['V8_IS_TSAN',],
}],
['v8_cppgc_microtask_queue == 1', {
'defines': ['V8_CPPGC_MICROTASK_QUEUE',],
}],
['OS == "win"', {
'defines': [
'WIN32',
Expand Down
10 changes: 0 additions & 10 deletions src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ ContextifyContext* ContextifyContext::New(Environment* env,

MicrotaskQueue* queue =
options->own_microtask_queue
#ifdef V8_CPPGC_MICROTASK_QUEUE
? options->own_microtask_queue
#else
? options->own_microtask_queue.get()
#endif
: env->isolate()->GetCurrentContext()->GetMicrotaskQueue();

Local<Context> v8_context;
Expand All @@ -180,13 +176,7 @@ ContextifyContext::ContextifyContext(Environment* env,
Local<Object> wrapper,
Local<Context> v8_context,
ContextOptions* options)
#ifdef V8_CPPGC_MICROTASK_QUEUE
: microtask_queue_(options->own_microtask_queue)
#else
: microtask_queue_(options->own_microtask_queue
? options->own_microtask_queue.release()
: nullptr)
#endif
{
CppgcMixin::Wrap(this, env, wrapper);

Expand Down
8 changes: 0 additions & 8 deletions test/cctest/test_environment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -750,11 +750,7 @@ TEST_F(EnvironmentTest, NestedMicrotaskQueue) {
const v8::HandleScope handle_scope(isolate_);
const Argv argv;

#ifdef V8_CPPGC_MICROTASK_QUEUE
v8::MicrotaskQueue*
#else
std::unique_ptr<v8::MicrotaskQueue>
#endif
queue =
v8::MicrotaskQueue::New(isolate_, v8::MicrotasksPolicy::kExplicit);

Expand All @@ -764,11 +760,7 @@ TEST_F(EnvironmentTest, NestedMicrotaskQueue) {
{},
{},
v8::DeserializeInternalFieldsCallback(),
#ifdef V8_CPPGC_MICROTASK_QUEUE
queue
#else
queue.get()
#endif
);
node::InitializeContext(context);
v8::Context::Scope context_scope(context);
Expand Down
Loading