-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JSC] Create (async) generator object after performing FunctionDeclarationInstantiation #19564
Conversation
EWS run on previous version of this PR (hash 5109c7b) |
5109c7b
to
3c7f1d8
Compare
EWS run on previous version of this PR (hash 3c7f1d8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me
3c7f1d8
to
bf215af
Compare
EWS run on current version of this PR (hash bf215af) |
…ationInstantiation https://bugs.webkit.org/show_bug.cgi?id=263617 <rdar://problem/117439419> Reviewed by Justin Michaud. initializeDefaultParameterValuesAndSetupFunctionScopeStack(), which implements steps 25-26 of FunctionDeclarationInstantiation [1], may call into arbitrary userland code when evaluating default parameters, affecting the [[Prototype]] of created & returned (async) generator object. With this change, (async) generator object creation happens after parameter initialization, aligning JSC with the spec [1][2] and SpiderMonkey. [1]: https://tc39.es/ecma262/#sec-functiondeclarationinstantiation [2]: https://tc39.es/ecma262/#sec-runtime-semantics-evaluategeneratorbody (step 2) [3]: https://tc39.es/ecma262/#sec-runtime-semantics-evaluateasyncgeneratorbody (step 2) * JSTests/stress/regress-263617.js: Added. * JSTests/test262/expectations.yaml: Mark 8 tests as passing. * Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::BytecodeGenerator): Canonical link: https://commits.webkit.org/269823@main
bf215af
to
d9e5846
Compare
Committed 269823@main (d9e5846): https://commits.webkit.org/269823@main Reviewed commits have been landed. Closing PR #19564 and removing active labels. |
d9e5846
bf215af
🧪 style🛠 ios🛠 mac🛠 wpe🛠 wincairo🛠 ios-sim🛠 mac-AS-debug🧪 wpe-wk2🧪 webkitperl🧪 ios-wk2🧪 api-mac🛠 gtk🧪 ios-wk2-wpt🧪 mac-wk1🧪 gtk-wk2🛠 🧪 jsc🧪 api-ios🧪 mac-wk2🧪 api-gtk🛠 🧪 jsc-arm64🛠 tv🧪 mac-AS-debug-wk2🛠 jsc-armv7🛠 tv-sim🧪 mac-wk2-stress🧪 jsc-armv7-tests🛠 watch🛠 jsc-mips🛠 watch-sim🧪 jsc-mips-tests