浏览代码

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 1 年之前
父节点
当前提交
bf8107b247
共有 1 个文件被更改,包括 8 次插入8 次删除
  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));
     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)
 JS_DEFINE_NATIVE_FUNCTION(PromiseConstructor::with_resolvers)
 {
 {
     auto& realm = *vm.current_realm();
     auto& realm = *vm.current_realm();
@@ -514,4 +507,11 @@ JS_DEFINE_NATIVE_FUNCTION(PromiseConstructor::with_resolvers)
     return object;
     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();
+}
+
 }
 }