@@ -1874,21 +1874,6 @@ bool ShouldRetryAsESM(Realm* realm,
1874
1874
return false ;
1875
1875
}
1876
1876
1877
- static void ShouldRetryAsESM (const FunctionCallbackInfo<Value>& args) {
1878
- Realm* realm = Realm::GetCurrent (args);
1879
-
1880
- CHECK_EQ (args.Length (), 3 ); // message, code, resource_name
1881
- CHECK (args[0 ]->IsString ());
1882
- Local<String> message = args[0 ].As <String>();
1883
- CHECK (args[1 ]->IsString ());
1884
- Local<String> code = args[1 ].As <String>();
1885
- CHECK (args[2 ]->IsString ());
1886
- Local<String> resource_name = args[2 ].As <String>();
1887
-
1888
- args.GetReturnValue ().Set (
1889
- ShouldRetryAsESM (realm, message, code, resource_name));
1890
- }
1891
-
1892
1877
static void ContainsModuleSyntax (const FunctionCallbackInfo<Value>& args) {
1893
1878
Isolate* isolate = args.GetIsolate ();
1894
1879
Local<Context> context = isolate->GetCurrentContext ();
@@ -1993,7 +1978,6 @@ void CreatePerIsolateProperties(IsolateData* isolate_data,
1993
1978
CompileFunctionForCJSLoader);
1994
1979
1995
1980
SetMethod (isolate, target, " containsModuleSyntax" , ContainsModuleSyntax);
1996
- SetMethod (isolate, target, " shouldRetryAsESM" , ShouldRetryAsESM);
1997
1981
}
1998
1982
1999
1983
static void CreatePerContextProperties (Local<Object> target,
@@ -2039,7 +2023,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) {
2039
2023
registry->Register (WatchdogHasPendingSigint);
2040
2024
registry->Register (MeasureMemory);
2041
2025
registry->Register (ContainsModuleSyntax);
2042
- registry->Register (ShouldRetryAsESM);
2043
2026
}
2044
2027
} // namespace contextify
2045
2028
} // namespace node
0 commit comments