-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Ensure there is an active script while running JS jobs #3163
Conversation
source
Outdated
|
||
<p class="note">This affects the <span>active script</span> while the job runs, in cases like | ||
<code data-x="">Promise.resolve("...").then(eval)</code> where there would otherwise be no | ||
active script since <code data-x="">eval</code> is a built-in function that does not original |
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.
s/original/originate/?
This appears to be correct for fixing tc39/ecma262#871 in HTML, but it could be that I'm missing some HTML-specific details, because I simply don't know the HTML spec that well. 😄 And I'm still wondering if calling |
08cfce5
to
6261512
Compare
Tests are up. This is ready for review/merging. |
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.
LGTM as far as editorial review
It seems this includes a commit that shouldn't be here. |
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.
Approving "Ensure there is an active script while running JS jobs" only.
source
Outdated
<li><p><span>Prepare to run a callback</span> with <var>incumbent settings</var>.</p></li> | ||
<p class="note">This affects the <span>active script</span> while the job runs, in cases like | ||
<code data-x="">Promise.resolve("...").then(eval)</code> where there would otherwise be no | ||
active script since <code data-x="">eval</code> is a built-in function that does not originate |
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.
eval()
"Fixes" tc39/ecma262#871, at least for HTML, given that we have our own version of EnqueueJob. Important for #3117.
6261512
to
42a1bef
Compare
…ise jobs, a=testonly Automatic update from web-platform-testsTest active script, via import(), in promise jobs Follows whatwg/html#3163. -- wpt-commits: 1c3621705bdd047fde1e4a2a165c49ec837ffa1c wpt-pr: 8287
…ise jobs, a=testonly Automatic update from web-platform-testsTest active script, via import(), in promise jobs Follows whatwg/html#3163. -- wpt-commits: 1c3621705bdd047fde1e4a2a165c49ec837ffa1c wpt-pr: 8287 UltraBlame original commit: 89d303876a7e1b2b43d099822477b7f80333b71b
…ise jobs, a=testonly Automatic update from web-platform-testsTest active script, via import(), in promise jobs Follows whatwg/html#3163. -- wpt-commits: 1c3621705bdd047fde1e4a2a165c49ec837ffa1c wpt-pr: 8287 UltraBlame original commit: 89d303876a7e1b2b43d099822477b7f80333b71b
…ise jobs, a=testonly Automatic update from web-platform-testsTest active script, via import(), in promise jobs Follows whatwg/html#3163. -- wpt-commits: 1c3621705bdd047fde1e4a2a165c49ec837ffa1c wpt-pr: 8287 UltraBlame original commit: 89d303876a7e1b2b43d099822477b7f80333b71b
"Fixes" tc39/ecma262#871, at least for HTML, given that we have our own version of EnqueueJob. Important for #3117.
People who may be interested in reviewing this: @anba @bzbarsky @nyaxt. Alternately I'm happy with just editorial review as this stuff is pretty subtle.
Tests: web-platform-tests/wpt#8287