Skip to content

Commit 29e4a7e

Browse files
Update apps/site/pages/en/blog/announcements/notable-v8-changes-from-node-js-26-to-27-alpha.md
Co-authored-by: Chengzhong Wu <legendecas@gmail.com> Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
1 parent ebef9fd commit 29e4a7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/site/pages/en/blog/announcements/notable-v8-changes-from-node-js-26-to-27-alpha.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ typeof Object.create(err).stack; // No longer looks up the prototype chain
131131

132132
### Changes to Promises and async/await
133133

134-
When an [ES module with top-level `await`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#top_level_await) is evaluated, V8 [no longer calls](https://chromium-review.googlesource.com/c/v8/v8/+/7822979) `Promise.prototype.then()` in a way that looks up `constructor` and `Symbol.species` on the promise, as the specification requires.
134+
When an [ES module with top-level `await`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#top_level_await) is evaluated, as the specification requires, V8 [no longer calls](https://chromium-review.googlesource.com/c/v8/v8/+/7822979) `Promise.prototype.then()` in a way that looks up `constructor` and `Symbol.species` on the promise.
135135

136136
When the callback passed to [`Promise.try`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/try) returns a promise whose `constructor` is `Promise` in the same realm, `Promise.try` [now returns that promise directly](https://chromium-review.googlesource.com/c/v8/v8/+/8251141), see [ecma262#3883](https://github.com/tc39/ecma262/pull/3883).
137137

0 commit comments

Comments
 (0)