Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 9d4cacd27956d94e594e1e278b545ed95766a1b3..64efc85d0304b3f706993622bc3b915f59d41347 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1387,7 +1387,7 @@ void FunctionTemplate::SetCallHandler(FunctionCallback callback, |
ENTER_V8_NO_SCRIPT_NO_EXCEPTION(isolate); |
i::HandleScope scope(isolate); |
i::Handle<i::Struct> struct_obj = |
- isolate->factory()->NewStruct(i::CALL_HANDLER_INFO_TYPE); |
+ isolate->factory()->NewStruct(i::TUPLE2_TYPE); |
i::Handle<i::CallHandlerInfo> obj = |
i::Handle<i::CallHandlerInfo>::cast(struct_obj); |
SET_FIELD_WRAPPED(obj, set_callback, callback); |
@@ -1844,7 +1844,7 @@ void ObjectTemplate::SetCallAsFunctionHandler(FunctionCallback callback, |
auto cons = EnsureConstructor(isolate, this); |
EnsureNotInstantiated(cons, "v8::ObjectTemplate::SetCallAsFunctionHandler"); |
i::Handle<i::Struct> struct_obj = |
- isolate->factory()->NewStruct(i::CALL_HANDLER_INFO_TYPE); |
+ isolate->factory()->NewStruct(i::TUPLE2_TYPE); |
i::Handle<i::CallHandlerInfo> obj = |
i::Handle<i::CallHandlerInfo>::cast(struct_obj); |
SET_FIELD_WRAPPED(obj, set_callback, callback); |
@@ -8617,7 +8617,7 @@ void Isolate::EnqueueMicrotask(MicrotaskCallback microtask, void* data) { |
i::HandleScope scope(isolate); |
i::Handle<i::CallHandlerInfo> callback_info = |
i::Handle<i::CallHandlerInfo>::cast( |
- isolate->factory()->NewStruct(i::CALL_HANDLER_INFO_TYPE)); |
+ isolate->factory()->NewStruct(i::TUPLE2_TYPE)); |
SET_FIELD_WRAPPED(callback_info, set_callback, microtask); |
SET_FIELD_WRAPPED(callback_info, set_data, data); |
isolate->EnqueueMicrotask(callback_info); |