@@ -1884,21 +1884,6 @@ bool ShouldRetryAsESM(Realm* realm, |
1884 | 1884 | return false; |
1885 | 1885 | } |
1886 | 1886 |
|
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 | | - |
1902 | 1887 | static void ContainsModuleSyntax(const FunctionCallbackInfo<Value>& args) { |
1903 | 1888 | Isolate* isolate = args.GetIsolate(); |
1904 | 1889 | Local<Context> context = isolate->GetCurrentContext(); |
@@ -2003,7 +1988,6 @@ void CreatePerIsolateProperties(IsolateData* isolate_data, |
2003 | 1988 | CompileFunctionForCJSLoader); |
2004 | 1989 |
|
2005 | 1990 | SetMethod(isolate, target, "containsModuleSyntax", ContainsModuleSyntax); |
2006 | | - SetMethod(isolate, target, "shouldRetryAsESM", ShouldRetryAsESM); |
2007 | 1991 | } |
2008 | 1992 |
|
2009 | 1993 | static void CreatePerContextProperties(Local<Object> target, |
@@ -2049,7 +2033,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) { |
2049 | 2033 | registry->Register(WatchdogHasPendingSigint); |
2050 | 2034 | registry->Register(MeasureMemory); |
2051 | 2035 | registry->Register(ContainsModuleSyntax); |
2052 | | - registry->Register(ShouldRetryAsESM); |
2053 | 2036 | } |
2054 | 2037 | } // namespace contextify |
2055 | 2038 | } // namespace node |
|