@@ -23,6 +23,7 @@ using node::url::URL;
23
23
using node::url::URL_FLAGS_FAILED;
24
24
using v8::Array;
25
25
using v8::Context;
26
+ using v8::EscapableHandleScope;
26
27
using v8::Function;
27
28
using v8::FunctionCallbackInfo;
28
29
using v8::FunctionTemplate;
@@ -43,6 +44,7 @@ using v8::PrimitiveArray;
43
44
using v8::Promise;
44
45
using v8::ScriptCompiler;
45
46
using v8::ScriptOrigin;
47
+ using v8::ScriptOrModule;
46
48
using v8::String;
47
49
using v8::Undefined;
48
50
using v8::Value;
@@ -599,7 +601,7 @@ Maybe<const PackageConfig*> GetPackageConfig(Environment* env,
599
601
std::string pkg_src = source.FromJust ();
600
602
601
603
Isolate* isolate = env->isolate ();
602
- v8:: HandleScope handle_scope (isolate);
604
+ HandleScope handle_scope (isolate);
603
605
604
606
Local<Object> pkg_json;
605
607
{
@@ -938,7 +940,7 @@ Maybe<URL> ResolveExportsTarget(Environment* env,
938
940
Isolate* isolate = env->isolate ();
939
941
Local<Context> context = env->context ();
940
942
if (target->IsString ()) {
941
- Utf8Value target_utf8 (isolate, target.As <v8:: String>());
943
+ Utf8Value target_utf8 (isolate, target.As <String>());
942
944
std::string target_str (*target_utf8, target_utf8.length ());
943
945
Maybe<URL> resolved = ResolveExportsTargetString (env, target_str, subpath,
944
946
pkg_subpath, pjson_url, base, throw_invalid);
@@ -1369,12 +1371,12 @@ void ModuleWrap::GetPackageType(const FunctionCallbackInfo<Value>& args) {
1369
1371
1370
1372
static MaybeLocal<Promise> ImportModuleDynamically (
1371
1373
Local<Context> context,
1372
- Local<v8:: ScriptOrModule> referrer,
1374
+ Local<ScriptOrModule> referrer,
1373
1375
Local<String> specifier) {
1374
1376
Isolate* iso = context->GetIsolate ();
1375
1377
Environment* env = Environment::GetCurrent (context);
1376
1378
CHECK_NOT_NULL (env); // TODO(addaleax): Handle nullptr here.
1377
- v8:: EscapableHandleScope handle_scope (iso);
1379
+ EscapableHandleScope handle_scope (iso);
1378
1380
1379
1381
Local<Function> import_callback =
1380
1382
env->host_import_module_dynamically_callback ();
0 commit comments