GeezerVison is showing github.com — deps: V8: cherry-pick 0d5d6e71bbb0 · nodejs/node@99ffe35
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: common.gypi +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 37 | 37 |
| 38 | 38 | # Reset this number to 0 on major V8 upgrades. | 39 | 39 | # Increment by one for each non-official patch applied to deps/v8. | 40 | | - 'v8_embedder_string': '-node.8', | | 40 | + 'v8_embedder_string': '-node.9', | 41 | 41 |
| 42 | 42 | ##### V8 defaults for Node.js ##### | 43 | 43 |
| |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/flags/flag-definitions.h -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -315,7 +315,6 @@ DEFINE_BOOL(js_shipping, true, "enable all shipped JavaScript features") | 315 | 315 | V(harmony_import_attributes, "harmony import attributes") | 316 | 316 |
| 317 | 317 | #define JAVASCRIPT_SHIPPING_FEATURES_BASE(V) \ | 318 | | - V(js_promise_withresolvers, "Promise.withResolvers") \ | 319 | 318 | V(js_regexp_duplicate_named_groups, "RegExp duplicate named groups") \ | 320 | 319 | V(js_regexp_modifiers, "RegExp modifiers") \ | 321 | 320 | V(js_promise_try, "Promise.try") | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/init/bootstrapper.cc +9-18Lines changed: 9 additions & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3258,6 +3258,15 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, | 3258 | 3258 | InstallFunctionWithBuiltinId(isolate_, promise_fun, "reject", | 3259 | 3259 | Builtin::kPromiseReject, 1, kAdapt); | 3260 | 3260 |
| | 3261 | + std::array<Handle<Name>, 3> fields{factory->promise_string(), | | 3262 | + factory->resolve_string(), | | 3263 | + factory->reject_string()}; | | 3264 | + DirectHandle<Map> result_map = | | 3265 | + CreateLiteralObjectMapFromCache(isolate_, fields); | | 3266 | + native_context()->set_promise_withresolvers_result_map(*result_map); | | 3267 | + InstallFunctionWithBuiltinId(isolate_, promise_fun, "withResolvers", | | 3268 | + Builtin::kPromiseWithResolvers, 0, kAdapt); | | 3269 | + | 3261 | 3270 | SetConstructorInstanceType(isolate_, promise_fun, | 3262 | 3271 | JS_PROMISE_CONSTRUCTOR_TYPE); | 3263 | 3272 |
| @@ -5581,24 +5590,6 @@ void Genesis::InitializeGlobal_js_promise_try() { | 5581 | 5590 | Builtin::kPromiseTry, 1, kDontAdapt); | 5582 | 5591 | } | 5583 | 5592 |
| 5584 | | -void Genesis::InitializeGlobal_js_promise_withresolvers() { | 5585 | | - if (!v8_flags.js_promise_withresolvers) return; | 5586 | | - | 5587 | | - Factory* factory = isolate()->factory(); | 5588 | | - | 5589 | | - std::array<Handle<Name>, 3> fields{factory->promise_string(), | 5590 | | - factory->resolve_string(), | 5591 | | - factory->reject_string()}; | 5592 | | - DirectHandle<Map> result_map = | 5593 | | - CreateLiteralObjectMapFromCache(isolate(), fields); | 5594 | | - native_context()->set_promise_withresolvers_result_map(*result_map); | 5595 | | - | 5596 | | - Handle<JSFunction> promise_fun = | 5597 | | - handle(native_context()->promise_function(), isolate()); | 5598 | | - InstallFunctionWithBuiltinId(isolate(), promise_fun, "withResolvers", | 5599 | | - Builtin::kPromiseWithResolvers, 0, kAdapt); | 5600 | | -} | 5601 | | - | 5602 | 5593 | void Genesis::InitializeGlobal_harmony_set_methods() { | 5603 | 5594 | if (!v8_flags.harmony_set_methods) return; | 5604 | 5595 |
| |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/test/mjsunit/harmony/promise-withresolvers.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | // Use of this source code is governed by a BSD-style license that can be | 3 | 3 | // found in the LICENSE file. | 4 | 4 |
| 5 | | -// Flags: --js-promise-withresolvers --allow-natives-syntax | | 5 | +// Flags: --allow-natives-syntax | 6 | 6 |
| 7 | 7 | const desc = Object.getOwnPropertyDescriptor(Promise, 'withResolvers'); | 8 | 8 | assertTrue(desc.configurable); | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/test/test262/testcfg.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 58 | 58 | 'json-parse-with-source': '--harmony-json-parse-with-source', | 59 | 59 | 'iterator-helpers': '--harmony-iterator-helpers', | 60 | 60 | 'set-methods': '--harmony-set-methods', | 61 | | - 'promise-with-resolvers': '--js-promise-withresolvers', | 62 | 61 | 'import-attributes': '--harmony-import-attributes', | 63 | 62 | 'regexp-duplicate-named-groups': '--js-regexp-duplicate-named-groups', | 64 | 63 | 'regexp-modifiers': '--js-regexp-modifiers', | |
|