Explorar el Código

LibJS: Update spec numbers for the Promise.withResolvers proposal

This proposal has been merged into the main ECMA-262 spec. See:
https://github.com/tc39/ecma262/commit/11cbf72
Timothy Flynn hace 1 año
padre
commit
bf8107b247
Se han modificado 1 ficheros con 8 adiciones y 8 borrados
  1. 8 8
      Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp

+ 8 - 8
Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp

@@ -480,14 +480,7 @@ JS_DEFINE_NATIVE_FUNCTION(PromiseConstructor::resolve)
     return TRY(promise_resolve(vm, constructor.as_object(), value));
 }
 
-// 27.2.4.8 get Promise [ @@species ], https://tc39.es/ecma262/#sec-get-promise-@@species
-JS_DEFINE_NATIVE_FUNCTION(PromiseConstructor::symbol_species_getter)
-{
-    // 1. Return the this value.
-    return vm.this_value();
-}
-
-// 1.1.1.1 Promise.withResolvers ( ), https://tc39.es/proposal-promise-with-resolvers/#sec-promise.withResolvers
+// 27.2.4.8 Promise.withResolvers ( ), https://tc39.es/ecma262/#sec-promise.withResolvers
 JS_DEFINE_NATIVE_FUNCTION(PromiseConstructor::with_resolvers)
 {
     auto& realm = *vm.current_realm();
@@ -514,4 +507,11 @@ JS_DEFINE_NATIVE_FUNCTION(PromiseConstructor::with_resolvers)
     return object;
 }
 
+// 27.2.4.9 get Promise [ @@species ], https://tc39.es/ecma262/#sec-get-promise-@@species
+JS_DEFINE_NATIVE_FUNCTION(PromiseConstructor::symbol_species_getter)
+{
+    // 1. Return the this value.
+    return vm.this_value();
+}
+
 }