| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 03f2505 commit 7e5ea06
19 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,6 +59,7 @@ namespace cares_wrap { | |||
| 59 | 59 | using v8::Array; | |
| 60 | 60 | using v8::Context; | |
| 61 | 61 | using v8::EscapableHandleScope; | |
| 62 | + using v8::Exception; | ||
| 62 | 63 | using v8::FunctionCallbackInfo; | |
| 63 | 64 | using v8::FunctionTemplate; | |
| 64 | 65 | using v8::HandleScope; | |
@@ -68,6 +69,7 @@ using v8::Isolate; | |||
| 68 | 69 | using v8::Just; | |
| 69 | 70 | using v8::JustVoid; | |
| 70 | 71 | using v8::Local; | |
| 72 | + using v8::LocalVector; | ||
| 71 | 73 | using v8::Maybe; | |
| 72 | 74 | using v8::Nothing; | |
| 73 | 75 | using v8::Null; | |
@@ -159,7 +161,7 @@ void ares_sockstate_cb(void* data, ares_socket_t sock, int read, int write) { | |||
| 159 | 161 | Local<Array> HostentToNames(Environment* env, struct hostent* host) { | |
| 160 | 162 | EscapableHandleScope scope(env->isolate()); | |
| 161 | 163 | ||
| 162 | - std::vector<Local<Value>> names; | ||
| 164 | + LocalVector<Value> names(env->isolate()); | ||
| 163 | 165 | ||
| 164 | 166 | for (uint32_t i = 0; host->h_aliases[i] != nullptr; ++i) | |
| 165 | 167 | names.emplace_back(OneByteString(env->isolate(), host->h_aliases[i])); | |
@@ -1577,7 +1579,7 @@ void ConvertIpv6StringToBuffer(const FunctionCallbackInfo<Value>& args) { | |||
| 1577 | 1579 | unsigned char dst[16]; // IPv6 addresses are 128 bits (16 bytes) | |
| 1578 | 1580 | ||
| 1579 | 1581 | if (uv_inet_pton(AF_INET6, *ip, dst) != 0) { | |
| 1580 | - isolate->ThrowException(v8::Exception::Error( | ||
| 1582 | + isolate->ThrowException(Exception::Error( | ||
| 1581 | 1583 | String::NewFromUtf8(isolate, "Invalid IPv6 address").ToLocalChecked())); | |
| 1582 | 1584 | return; | |
| 1583 | 1585 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,6 +20,7 @@ using v8::HandleScope; | |||
| 20 | 20 | using v8::Int32; | |
| 21 | 21 | using v8::Isolate; | |
| 22 | 22 | using v8::Local; | |
| 23 | + using v8::LocalVector; | ||
| 23 | 24 | using v8::Object; | |
| 24 | 25 | using v8::Uint32; | |
| 25 | 26 | using v8::Value; | |
@@ -222,7 +223,7 @@ void CipherBase::GetSSLCiphers(const FunctionCallbackInfo<Value>& args) { | |||
| 222 | 223 | }; | |
| 223 | 224 | ||
| 224 | 225 | const int n = sk_SSL_CIPHER_num(ciphers); | |
| 225 | - std::vector<Local<Value>> arr(n + arraysize(TLS13_CIPHERS)); | ||
| 226 | + LocalVector<Value> arr(env->isolate(), n + arraysize(TLS13_CIPHERS)); | ||
| 226 | 227 | ||
| 227 | 228 | for (int i = 0; i < n; ++i) { | |
| 228 | 229 | const SSL_CIPHER* cipher = sk_SSL_CIPHER_value(ciphers, i); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,6 +28,7 @@ using v8::Int32; | |||
| 28 | 28 | using v8::Isolate; | |
| 29 | 29 | using v8::JustVoid; | |
| 30 | 30 | using v8::Local; | |
| 31 | + using v8::LocalVector; | ||
| 31 | 32 | using v8::Maybe; | |
| 32 | 33 | using v8::MaybeLocal; | |
| 33 | 34 | using v8::Nothing; | |
@@ -95,7 +96,7 @@ void ECDH::GetCurves(const FunctionCallbackInfo<Value>& args) { | |||
| 95 | 96 | std::vector<EC_builtin_curve> curves(num_curves); | |
| 96 | 97 | CHECK_EQ(EC_get_builtin_curves(curves.data(), num_curves), num_curves); | |
| 97 | 98 | ||
| 98 | - std::vector<Local<Value>> arr(num_curves); | ||
| 99 | + LocalVector<Value> arr(env->isolate(), num_curves); | ||
| 99 | 100 | std::transform(curves.begin(), curves.end(), arr.begin(), [env](auto& curve) { | |
| 100 | 101 | return OneByteString(env->isolate(), OBJ_nid2sn(curve.nid)); | |
| 101 | 102 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,6 +19,7 @@ using v8::Isolate; | |||
| 19 | 19 | using v8::Just; | |
| 20 | 20 | using v8::JustVoid; | |
| 21 | 21 | using v8::Local; | |
| 22 | + using v8::LocalVector; | ||
| 22 | 23 | using v8::Maybe; | |
| 23 | 24 | using v8::MaybeLocal; | |
| 24 | 25 | using v8::Name; | |
@@ -144,9 +145,9 @@ void Hash::GetCachedAliases(const FunctionCallbackInfo<Value>& args) { | |||
| 144 | 145 | Isolate* isolate = args.GetIsolate(); | |
| 145 | 146 | Local<Context> context = args.GetIsolate()->GetCurrentContext(); | |
| 146 | 147 | Environment* env = Environment::GetCurrent(context); | |
| 147 | - std::vector<Local<Name>> names; | ||
| 148 | - std::vector<Local<Value>> values; | ||
| 149 | 148 | size_t size = env->alias_to_md_id_map.size(); | |
| 149 | + LocalVector<Name> names(isolate); | ||
| 150 | + LocalVector<Value> values(isolate); | ||
| 150 | 151 | #if OPENSSL_VERSION_MAJOR >= 3 | |
| 151 | 152 | names.reserve(size); | |
| 152 | 153 | values.reserve(size); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,6 +36,7 @@ using v8::HandleScope; | |||
| 36 | 36 | using v8::Isolate; | |
| 37 | 37 | using v8::JustVoid; | |
| 38 | 38 | using v8::Local; | |
| 39 | + using v8::LocalVector; | ||
| 39 | 40 | using v8::Maybe; | |
| 40 | 41 | using v8::MaybeLocal; | |
| 41 | 42 | using v8::NewStringType; | |
@@ -236,7 +237,7 @@ MaybeLocal<Value> cryptoErrorListToException( | |||
| 236 | 237 | if (errors.size() > 1) { | |
| 237 | 238 | CHECK(exception->IsObject()); | |
| 238 | 239 | Local<Object> exception_obj = exception.As<Object>(); | |
| 239 | - std::vector<Local<Value>> stack(errors.size() - 1); | ||
| 240 | + LocalVector<Value> stack(env->isolate(), errors.size() - 1); | ||
| 240 | 241 | ||
| 241 | 242 | // Iterate over all but the last error in the list. | |
| 242 | 243 | auto current = errors.begin(); | |
@@ -252,7 +253,7 @@ MaybeLocal<Value> cryptoErrorListToException( | |||
| 252 | 253 | } | |
| 253 | 254 | ||
| 254 | 255 | Local<v8::Array> stackArray = | |
| 255 | - v8::Array::New(env->isolate(), &stack[0], stack.size()); | ||
| 256 | + v8::Array::New(env->isolate(), stack.data(), stack.size()); | ||
| 256 | 257 | ||
| 257 | 258 | if (!exception_obj | |
| 258 | 259 | ->Set(env->context(), env->openssl_error_stack(), stackArray) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,7 @@ using v8::FunctionCallbackInfo; | |||
| 10 | 10 | using v8::Global; | |
| 11 | 11 | using v8::Isolate; | |
| 12 | 12 | using v8::Local; | |
| 13 | + using v8::LocalVector; | ||
| 13 | 14 | using v8::Object; | |
| 14 | 15 | using v8::Value; | |
| 15 | 16 | ||
@@ -56,7 +57,7 @@ void QueryObjects(const FunctionCallbackInfo<Value>& args) { | |||
| 56 | 57 | PrototypeChainHas prototype_chain_has(context, proto.As<Object>()); | |
| 57 | 58 | std::vector<Global<Object>> out; | |
| 58 | 59 | isolate->GetHeapProfiler()->QueryObjects(context, &prototype_chain_has, &out); | |
| 59 | - std::vector<Local<Value>> result; | ||
| 60 | + LocalVector<Value> result(isolate); | ||
| 60 | 61 | result.reserve(out.size()); | |
| 61 | 62 | for (size_t i = 0; i < out.size(); ++i) { | |
| 62 | 63 | result.push_back(out[i].Get(isolate)); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,25 +23,35 @@ using node::contextify::ContextifyContext; | |||
| 23 | 23 | using v8::Array; | |
| 24 | 24 | using v8::ArrayBufferView; | |
| 25 | 25 | using v8::Context; | |
| 26 | + using v8::Data; | ||
| 26 | 27 | using v8::EscapableHandleScope; | |
| 28 | + using v8::Exception; | ||
| 27 | 29 | using v8::FixedArray; | |
| 28 | 30 | using v8::Function; | |
| 29 | 31 | using v8::FunctionCallbackInfo; | |
| 30 | 32 | using v8::FunctionTemplate; | |
| 33 | + using v8::Global; | ||
| 31 | 34 | using v8::HandleScope; | |
| 32 | 35 | using v8::Int32; | |
| 33 | 36 | using v8::Integer; | |
| 34 | 37 | using v8::Isolate; | |
| 38 | + using v8::Just; | ||
| 35 | 39 | using v8::Local; | |
| 40 | + using v8::LocalVector; | ||
| 41 | + using v8::Maybe; | ||
| 36 | 42 | using v8::MaybeLocal; | |
| 37 | 43 | using v8::MemorySpan; | |
| 44 | + using v8::Message; | ||
| 38 | 45 | using v8::MicrotaskQueue; | |
| 39 | 46 | using v8::Module; | |
| 40 | 47 | using v8::ModuleRequest; | |
| 48 | + using v8::Name; | ||
| 49 | + using v8::Null; | ||
| 41 | 50 | using v8::Object; | |
| 42 | 51 | using v8::ObjectTemplate; | |
| 43 | 52 | using v8::PrimitiveArray; | |
| 44 | 53 | using v8::Promise; | |
| 54 | + using v8::PromiseRejectEvent; | ||
| 45 | 55 | using v8::ScriptCompiler; | |
| 46 | 56 | using v8::ScriptOrigin; | |
| 47 | 57 | using v8::String; | |
@@ -103,7 +113,7 @@ ModuleWrap* ModuleWrap::GetFromModule(Environment* env, | |||
| 103 | 113 | return nullptr; | |
| 104 | 114 | } | |
| 105 | 115 | ||
| 106 | - v8::Maybe<bool> ModuleWrap::CheckUnsettledTopLevelAwait() { | ||
| 116 | + Maybe<bool> ModuleWrap::CheckUnsettledTopLevelAwait() { | ||
| 107 | 117 | Isolate* isolate = env()->isolate(); | |
| 108 | 118 | Local<Context> context = env()->context(); | |
| 109 | 119 | ||
@@ -115,17 +125,17 @@ v8::Maybe<bool> ModuleWrap::CheckUnsettledTopLevelAwait() { | |||
| 115 | 125 | Local<Module> module = module_.Get(isolate); | |
| 116 | 126 | // It's a synthetic module, likely a facade wrapping CJS. | |
| 117 | 127 | if (!module->IsSourceTextModule()) { | |
| 118 | - return v8::Just(true); | ||
| 128 | + return Just(true); | ||
| 119 | 129 | } | |
| 120 | 130 | ||
| 121 | 131 | if (!module->IsGraphAsync()) { // There is no TLA, no need to check. | |
| 122 | - return v8::Just(true); | ||
| 132 | + return Just(true); | ||
| 123 | 133 | } | |
| 124 | 134 | ||
| 125 | 135 | auto stalled_messages = | |
| 126 | 136 | std::get<1>(module->GetStalledTopLevelAwaitMessages(isolate)); | |
| 127 | 137 | if (stalled_messages.empty()) { | |
| 128 | - return v8::Just(true); | ||
| 138 | + return Just(true); | ||
| 129 | 139 | } | |
| 130 | 140 | ||
| 131 | 141 | if (env()->options()->warnings) { | |
@@ -138,7 +148,7 @@ v8::Maybe<bool> ModuleWrap::CheckUnsettledTopLevelAwait() { | |||
| 138 | 148 | } | |
| 139 | 149 | } | |
| 140 | 150 | ||
| 141 | - return v8::Just(false); | ||
| 151 | + return Just(false); | ||
| 142 | 152 | } | |
| 143 | 153 | ||
| 144 | 154 | Local<PrimitiveArray> ModuleWrap::GetHostDefinedOptions( | |
@@ -229,7 +239,7 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) { | |||
| 229 | 239 | Local<Array> export_names_arr = args[2].As<Array>(); | |
| 230 | 240 | ||
| 231 | 241 | uint32_t len = export_names_arr->Length(); | |
| 232 | - std::vector<Local<String>> export_names(len); | ||
| 242 | + LocalVector<String> export_names(realm->isolate(), len); | ||
| 233 | 243 | for (uint32_t i = 0; i < len; i++) { | |
| 234 | 244 | Local<Value> export_name_val = | |
| 235 | 245 | export_names_arr->Get(context, i).ToLocalChecked(); | |
@@ -245,7 +255,7 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) { | |||
| 245 | 255 | // When we are compiling for the default loader, this will be | |
| 246 | 256 | // std::nullopt, and CompileSourceTextModule() should use | |
| 247 | 257 | // on-disk cache. | |
| 248 | - std::optional<v8::ScriptCompiler::CachedData*> user_cached_data; | ||
| 258 | + std::optional<ScriptCompiler::CachedData*> user_cached_data; | ||
| 249 | 259 | if (id_symbol != | |
| 250 | 260 | realm->isolate_data()->source_text_module_default_hdo()) { | |
| 251 | 261 | user_cached_data = nullptr; | |
@@ -324,7 +334,7 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) { | |||
| 324 | 334 | // be stored in an internal field. | |
| 325 | 335 | Local<Object> context_object = context->GetExtrasBindingObject(); | |
| 326 | 336 | Local<Value> synthetic_evaluation_step = | |
| 327 | - synthetic ? args[3] : Undefined(realm->isolate()).As<v8::Value>(); | ||
| 337 | + synthetic ? args[3] : Undefined(realm->isolate()).As<Value>(); | ||
| 328 | 338 | ||
| 329 | 339 | ModuleWrap* obj = new ModuleWrap( | |
| 330 | 340 | realm, that, module, url, context_object, synthetic_evaluation_step); | |
@@ -405,22 +415,22 @@ static Local<Object> createImportAttributesContainer( | |||
| 405 | 415 | const int elements_per_attribute) { | |
| 406 | 416 | CHECK_EQ(raw_attributes->Length() % elements_per_attribute, 0); | |
| 407 | 417 | size_t num_attributes = raw_attributes->Length() / elements_per_attribute; | |
| 408 | - std::vector<Local<v8::Name>> names(num_attributes); | ||
| 409 | - std::vector<Local<v8::Value>> values(num_attributes); | ||
| 418 | + LocalVector<Name> names(isolate, num_attributes); | ||
| 419 | + LocalVector<Value> values(isolate, num_attributes); | ||
| 410 | 420 | ||
| 411 | 421 | for (int i = 0; i < raw_attributes->Length(); i += elements_per_attribute) { | |
| 412 | 422 | int idx = i / elements_per_attribute; | |
| 413 | - names[idx] = raw_attributes->Get(realm->context(), i).As<v8::Name>(); | ||
| 423 | + names[idx] = raw_attributes->Get(realm->context(), i).As<Name>(); | ||
| 414 | 424 | values[idx] = raw_attributes->Get(realm->context(), i + 1).As<Value>(); | |
| 415 | 425 | } | |
| 416 | 426 | ||
| 417 | 427 | return Object::New( | |
| 418 | - isolate, v8::Null(isolate), names.data(), values.data(), num_attributes); | ||
| 428 | + isolate, Null(isolate), names.data(), values.data(), num_attributes); | ||
| 419 | 429 | } | |
| 420 | 430 | ||
| 421 | 431 | static Local<Array> createModuleRequestsContainer( | |
| 422 | 432 | Realm* realm, Isolate* isolate, Local<FixedArray> raw_requests) { | |
| 423 | - std::vector<Local<Value>> requests(raw_requests->Length()); | ||
| 433 | + LocalVector<Value> requests(isolate, raw_requests->Length()); | ||
| 424 | 434 | ||
| 425 | 435 | for (int i = 0; i < raw_requests->Length(); i++) { | |
| 426 | 436 | Local<ModuleRequest> module_request = | |
@@ -434,7 +444,7 @@ static Local<Array> createModuleRequestsContainer( | |||
| 434 | 444 | Local<Object> attributes = | |
| 435 | 445 | createImportAttributesContainer(realm, isolate, raw_attributes, 3); | |
| 436 | 446 | ||
| 437 | - Local<v8::Name> names[] = { | ||
| 447 | + Local<Name> names[] = { | ||
| 438 | 448 | realm->isolate_data()->specifier_string(), | |
| 439 | 449 | realm->isolate_data()->attributes_string(), | |
| 440 | 450 | }; | |
@@ -444,8 +454,8 @@ static Local<Array> createModuleRequestsContainer( | |||
| 444 | 454 | }; | |
| 445 | 455 | DCHECK_EQ(arraysize(names), arraysize(values)); | |
| 446 | 456 | ||
| 447 | - Local<Object> request = Object::New( | ||
| 448 | - isolate, v8::Null(isolate), names, values, arraysize(names)); | ||
| 457 | + Local<Object> request = | ||
| 458 | + Object::New(isolate, Null(isolate), names, values, arraysize(names)); | ||
| 449 | 459 | ||
| 450 | 460 | requests[i] = request; | |
| 451 | 461 | } | |
@@ -481,11 +491,11 @@ void ModuleWrap::Link(const FunctionCallbackInfo<Value>& args) { | |||
| 481 | 491 | Local<Array> modules = args[1].As<Array>(); | |
| 482 | 492 | CHECK_EQ(specifiers->Length(), modules->Length()); | |
| 483 | 493 | ||
| 484 | - std::vector<v8::Global<Value>> specifiers_buffer; | ||
| 494 | + std::vector<Global<Value>> specifiers_buffer; | ||
| 485 | 495 | if (FromV8Array(context, specifiers, &specifiers_buffer).IsNothing()) { | |
| 486 | 496 | return; | |
| 487 | 497 | } | |
| 488 | - std::vector<v8::Global<Value>> modules_buffer; | ||
| 498 | + std::vector<Global<Value>> modules_buffer; | ||
| 489 | 499 | if (FromV8Array(context, modules, &modules_buffer).IsNothing()) { | |
| 490 | 500 | return; | |
| 491 | 501 | } | |
@@ -669,19 +679,18 @@ void ModuleWrap::EvaluateSync(const FunctionCallbackInfo<Value>& args) { | |||
| 669 | 679 | // before handler was added which would remove it from the unhandled | |
| 670 | 680 | // rejection handling, since we are converting it into an error and throw | |
| 671 | 681 | // from here directly. | |
| 672 | - Local<Value> type = v8::Integer::New( | ||
| 673 | - isolate, | ||
| 674 | - static_cast<int32_t>( | ||
| 675 | - v8::PromiseRejectEvent::kPromiseHandlerAddedAfterReject)); | ||
| 682 | + Local<Value> type = | ||
| 683 | + Integer::New(isolate, | ||
| 684 | + static_cast<int32_t>( | ||
| 685 | + PromiseRejectEvent::kPromiseHandlerAddedAfterReject)); | ||
| 676 | 686 | Local<Value> args[] = {type, promise, Undefined(isolate)}; | |
| 677 | 687 | if (env->promise_reject_callback() | |
| 678 | 688 | ->Call(context, Undefined(isolate), arraysize(args), args) | |
| 679 | 689 | .IsEmpty()) { | |
| 680 | 690 | return; | |
| 681 | 691 | } | |
| 682 | 692 | Local<Value> exception = promise->Result(); | |
| 683 | - Local<v8::Message> message = | ||
| 684 | - v8::Exception::CreateMessage(isolate, exception); | ||
| 693 | + Local<Message> message = Exception::CreateMessage(isolate, exception); | ||
| 685 | 694 | AppendExceptionLine( | |
| 686 | 695 | env, exception, message, ErrorHandlingMode::MODULE_ERROR); | |
| 687 | 696 | isolate->ThrowException(exception); | |
@@ -718,15 +727,15 @@ void ModuleWrap::GetNamespaceSync(const FunctionCallbackInfo<Value>& args) { | |||
| 718 | 727 | Local<Module> module = obj->module_.Get(isolate); | |
| 719 | 728 | ||
| 720 | 729 | switch (module->GetStatus()) { | |
| 721 | - case v8::Module::Status::kUninstantiated: | ||
| 722 | - case v8::Module::Status::kInstantiating: | ||
| 730 | + case Module::Status::kUninstantiated: | ||
| 731 | + case Module::Status::kInstantiating: | ||
| 723 | 732 | return realm->env()->ThrowError( | |
| 724 | 733 | "Cannot get namespace, module has not been instantiated"); | |
| 725 | - case v8::Module::Status::kInstantiated: | ||
| 726 | - case v8::Module::Status::kEvaluated: | ||
| 727 | - case v8::Module::Status::kErrored: | ||
| 734 | + case Module::Status::kInstantiated: | ||
| 735 | + case Module::Status::kEvaluated: | ||
| 736 | + case Module::Status::kErrored: | ||
| 728 | 737 | break; | |
| 729 | - case v8::Module::Status::kEvaluating: | ||
| 738 | + case Module::Status::kEvaluating: | ||
| 730 | 739 | UNREACHABLE(); | |
| 731 | 740 | } | |
| 732 | 741 | ||
@@ -746,14 +755,14 @@ void ModuleWrap::GetNamespace(const FunctionCallbackInfo<Value>& args) { | |||
| 746 | 755 | Local<Module> module = obj->module_.Get(isolate); | |
| 747 | 756 | ||
| 748 | 757 | switch (module->GetStatus()) { | |
| 749 | - case v8::Module::Status::kUninstantiated: | ||
| 750 | - case v8::Module::Status::kInstantiating: | ||
| 758 | + case Module::Status::kUninstantiated: | ||
| 759 | + case Module::Status::kInstantiating: | ||
| 751 | 760 | return realm->env()->ThrowError( | |
| 752 | 761 | "cannot get namespace, module has not been instantiated"); | |
| 753 | - case v8::Module::Status::kInstantiated: | ||
| 754 | - case v8::Module::Status::kEvaluating: | ||
| 755 | - case v8::Module::Status::kEvaluated: | ||
| 756 | - case v8::Module::Status::kErrored: | ||
| 762 | + case Module::Status::kInstantiated: | ||
| 763 | + case Module::Status::kEvaluating: | ||
| 764 | + case Module::Status::kEvaluated: | ||
| 765 | + case Module::Status::kErrored: | ||
| 757 | 766 | break; | |
| 758 | 767 | default: | |
| 759 | 768 | UNREACHABLE(); | |
@@ -825,7 +834,7 @@ MaybeLocal<Module> ModuleWrap::ResolveModuleCallback( | |||
| 825 | 834 | ||
| 826 | 835 | static MaybeLocal<Promise> ImportModuleDynamically( | |
| 827 | 836 | Local<Context> context, | |
| 828 | - Local<v8::Data> host_defined_options, | ||
| 837 | + Local<Data> host_defined_options, | ||
| 829 | 838 | Local<Value> resource_name, | |
| 830 | 839 | Local<String> specifier, | |
| 831 | 840 | Local<FixedArray> import_attributes) { | |
@@ -1011,7 +1020,7 @@ void ModuleWrap::CreateCachedData(const FunctionCallbackInfo<Value>& args) { | |||
| 1011 | 1020 | ||
| 1012 | 1021 | Local<Module> module = obj->module_.Get(isolate); | |
| 1013 | 1022 | ||
| 1014 | - CHECK_LT(module->GetStatus(), v8::Module::Status::kEvaluating); | ||
| 1023 | + CHECK_LT(module->GetStatus(), Module::Status::kEvaluating); | ||
| 1015 | 1024 | ||
| 1016 | 1025 | Local<UnboundModuleScript> unbound_module_script = | |
| 1017 | 1026 | module->GetUnboundModuleScript(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments