Skip to content

Commit 4db5d0b

Browse files
dario-piotrowicztargos
authored andcommitted
src: remove unused shouldRetryAsESM internal binding
PR-URL: #58265 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
1 parent a3af644 commit 4db5d0b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/node_contextify.cc

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,21 +1884,6 @@ bool ShouldRetryAsESM(Realm* realm,
18841884
return false;
18851885
}
18861886

1887-
static void ShouldRetryAsESM(const FunctionCallbackInfo<Value>& args) {
1888-
Realm* realm = Realm::GetCurrent(args);
1889-
1890-
CHECK_EQ(args.Length(), 3); // message, code, resource_name
1891-
CHECK(args[0]->IsString());
1892-
Local<String> message = args[0].As<String>();
1893-
CHECK(args[1]->IsString());
1894-
Local<String> code = args[1].As<String>();
1895-
CHECK(args[2]->IsString());
1896-
Local<String> resource_name = args[2].As<String>();
1897-
1898-
args.GetReturnValue().Set(
1899-
ShouldRetryAsESM(realm, message, code, resource_name));
1900-
}
1901-
19021887
static void ContainsModuleSyntax(const FunctionCallbackInfo<Value>& args) {
19031888
Isolate* isolate = args.GetIsolate();
19041889
Local<Context> context = isolate->GetCurrentContext();
@@ -2003,7 +1988,6 @@ void CreatePerIsolateProperties(IsolateData* isolate_data,
20031988
CompileFunctionForCJSLoader);
20041989

20051990
SetMethod(isolate, target, "containsModuleSyntax", ContainsModuleSyntax);
2006-
SetMethod(isolate, target, "shouldRetryAsESM", ShouldRetryAsESM);
20071991
}
20081992

20091993
static void CreatePerContextProperties(Local<Object> target,
@@ -2049,7 +2033,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) {
20492033
registry->Register(WatchdogHasPendingSigint);
20502034
registry->Register(MeasureMemory);
20512035
registry->Register(ContainsModuleSyntax);
2052-
registry->Register(ShouldRetryAsESM);
20532036
}
20542037
} // namespace contextify
20552038
} // namespace node

0 commit comments

Comments
 (0)