@@ -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-
19021887static 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
20091993static 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