Skip to content

Commit 1b571e1

Browse files
!module: detect ESM syntax by trying to recompile as SourceTextModule
Co-authored-by: Geoffrey Booth <[email protected]>
1 parent dc9f175 commit 1b571e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_contextify.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ static void ContainsModuleSyntax(const FunctionCallbackInfo<Value>& args) {
15831583
CHECK(args[1]->IsString());
15841584
Local<String> filename = args[1].As<String>();
15851585

1586-
// Argument 2: resource name (URL for module).
1586+
// Argument 2: resource name (URL for ES module).
15871587
Local<String> resource_name = filename;
15881588
if (args[2]->IsString()) {
15891589
resource_name = args[2].As<String>();

0 commit comments

Comments
 (0)