You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<metahttp-equiv="Content-Security-Policy" content="script-src 'nonce-test'"><scriptnonce="test">// Code to run with HostEnsureCanCompileStrings is false</script>
or
$ npx node@10 --disallow_code_generation_from_strings -e '// Code to run'
Quite a few of these interactions could be tested if there was simply a way to get HostEnsureCanCompileStrings to throw for a particular testcase without breaking tests that assumes it returns normally like those under test/language/eval-code.
Even more interactions could be tested if it could be turned off only for particular values of calleeRealm.
The text was updated successfully, but these errors were encountered:
The associated PR tc39/ecma262#1498 hasn't had author activity since June 2019. We can reopen here if there is anything that needs to be done in Test262
It's possible to test corner cases around HostEnsureCanCompileStrings from a browser or command line using tricks like those in tc39/ecma262 issue #1495:
or
Quite a few of these interactions could be tested if there was simply a way to get HostEnsureCanCompileStrings to throw for a particular testcase without breaking tests that assumes it returns normally like those under test/language/eval-code.
Even more interactions could be tested if it could be turned off only for particular values of calleeRealm.
The text was updated successfully, but these errors were encountered: