-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Normative: eval(nonString)
should not have observable side effects
#1504
Conversation
This adds tests for tc39/ecma262#1504 which cannot be tested purely in JavaScript because it involves HostEnsureCanCompileStrings. As documented in a table on tc39/ecma262#1495 this passes on recent Chrome and Safari and fails on Firefox so this test probably shouldn't land right away.
That's not correct. See 12.3.4.1 step 6.a. %eval% is a reference to the |
* [js] test order of host callout & typecheck during eval This adds tests for tc39/ecma262#1504 which cannot be tested purely in JavaScript because it involves HostEnsureCanCompileStrings. As documented in a table on tc39/ecma262#1495 this passes on recent Chrome and Safari and fails on Firefox so this test probably shouldn't land right away. * Moved test to content-security-policy/generic I reformatted it to follow the guidance at https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L37-L60 and moved the `<meta http-equiv=Content-Security-Policy>` content into a separate file per https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L22-L24 * move `<title>` into `<head>` * Mark new test tentative ... until tc39/ecma262#1495 lands.
Maybe @domenic can help clarify, as I believe he wrote much of this specification text. |
…1504) Fixes #1495 which identifies the ordering of host callouts and input type checks as a spec bug. This uses option 1 from #1495 (comment) to ensure that type checks happen before host callouts. This can't be tested in test262 but if this lands, I will follow up with tests via web-platform-tests/wpt.
eval(nonString)
should not have observable side effects
…eck during eval, a=testonly Automatic update from web-platform-tests [csp] test order of host callout & typecheck during eval (#16301) * [js] test order of host callout & typecheck during eval This adds tests for tc39/ecma262#1504 which cannot be tested purely in JavaScript because it involves HostEnsureCanCompileStrings. As documented in a table on tc39/ecma262#1495 this passes on recent Chrome and Safari and fails on Firefox so this test probably shouldn't land right away. * Moved test to content-security-policy/generic I reformatted it to follow the guidance at https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L37-L60 and moved the `<meta http-equiv=Content-Security-Policy>` content into a separate file per https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L22-L24 * move `<title>` into `<head>` * Mark new test tentative ... until tc39/ecma262#1495 lands. -- wpt-commits: e3d0146264093a389148cc555ee9be69bd75719b wpt-pr: 16301
…eck during eval, a=testonly Automatic update from web-platform-tests [csp] test order of host callout & typecheck during eval (#16301) * [js] test order of host callout & typecheck during eval This adds tests for tc39/ecma262#1504 which cannot be tested purely in JavaScript because it involves HostEnsureCanCompileStrings. As documented in a table on tc39/ecma262#1495 this passes on recent Chrome and Safari and fails on Firefox so this test probably shouldn't land right away. * Moved test to content-security-policy/generic I reformatted it to follow the guidance at https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L37-L60 and moved the `<meta http-equiv=Content-Security-Policy>` content into a separate file per https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L22-L24 * move `<title>` into `<head>` * Mark new test tentative ... until tc39/ecma262#1495 lands. -- wpt-commits: e3d0146264093a389148cc555ee9be69bd75719b wpt-pr: 16301
* [js] test order of host callout & typecheck during eval This adds tests for tc39/ecma262#1504 which cannot be tested purely in JavaScript because it involves HostEnsureCanCompileStrings. As documented in a table on tc39/ecma262#1495 this passes on recent Chrome and Safari and fails on Firefox so this test probably shouldn't land right away. * Moved test to content-security-policy/generic I reformatted it to follow the guidance at https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L37-L60 and moved the `<meta http-equiv=Content-Security-Policy>` content into a separate file per https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L22-L24 * move `<title>` into `<head>` * Mark new test tentative ... until tc39/ecma262#1495 lands.
…eck during eval, a=testonly Automatic update from web-platform-tests [csp] test order of host callout & typecheck during eval (#16301) * [js] test order of host callout & typecheck during eval This adds tests for tc39/ecma262#1504 which cannot be tested purely in JavaScript because it involves HostEnsureCanCompileStrings. As documented in a table on tc39/ecma262#1495 this passes on recent Chrome and Safari and fails on Firefox so this test probably shouldn't land right away. * Moved test to content-security-policy/generic I reformatted it to follow the guidance at https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L37-L60 and moved the `<meta http-equiv=Content-Security-Policy>` content into a separate file per https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L22-L24 * move `<title>` into `<head>` * Mark new test tentative ... until tc39/ecma262#1495 lands. -- wpt-commits: e3d0146264093a389148cc555ee9be69bd75719b wpt-pr: 16301 UltraBlame original commit: 88f30913db0b51d3ecb0e93e97bb57e9bd5802d5
…eck during eval, a=testonly Automatic update from web-platform-tests [csp] test order of host callout & typecheck during eval (#16301) * [js] test order of host callout & typecheck during eval This adds tests for tc39/ecma262#1504 which cannot be tested purely in JavaScript because it involves HostEnsureCanCompileStrings. As documented in a table on tc39/ecma262#1495 this passes on recent Chrome and Safari and fails on Firefox so this test probably shouldn't land right away. * Moved test to content-security-policy/generic I reformatted it to follow the guidance at https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L37-L60 and moved the `<meta http-equiv=Content-Security-Policy>` content into a separate file per https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L22-L24 * move `<title>` into `<head>` * Mark new test tentative ... until tc39/ecma262#1495 lands. -- wpt-commits: e3d0146264093a389148cc555ee9be69bd75719b wpt-pr: 16301 UltraBlame original commit: 88f30913db0b51d3ecb0e93e97bb57e9bd5802d5
…eck during eval, a=testonly Automatic update from web-platform-tests [csp] test order of host callout & typecheck during eval (#16301) * [js] test order of host callout & typecheck during eval This adds tests for tc39/ecma262#1504 which cannot be tested purely in JavaScript because it involves HostEnsureCanCompileStrings. As documented in a table on tc39/ecma262#1495 this passes on recent Chrome and Safari and fails on Firefox so this test probably shouldn't land right away. * Moved test to content-security-policy/generic I reformatted it to follow the guidance at https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L37-L60 and moved the `<meta http-equiv=Content-Security-Policy>` content into a separate file per https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L22-L24 * move `<title>` into `<head>` * Mark new test tentative ... until tc39/ecma262#1495 lands. -- wpt-commits: e3d0146264093a389148cc555ee9be69bd75719b wpt-pr: 16301 UltraBlame original commit: 88f30913db0b51d3ecb0e93e97bb57e9bd5802d5
Fixes #1495
which identifies the ordering of host callouts and input
type checks as a spec bug.
This uses option 1 from
#1495 (comment)
to ensure that type checks happen before host callouts.
This can't be tested in test262 but if this lands, I will follow up
with tests via web-platform-tests/wpt.