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
Basically I'm proposing a policy that restricts what can run code that isn't in strict mode. For example non-strict-mode none would disable all attempts to run non-strict mode code (it would not upgrade it to strict mode as this changes behaviour).
This would include all possible sources of running non-strict mode code:
<script> tags
eval
new Worker
serviceWorker.register
new Function
importScripts()
and any others I've missed
This could potentially allow engines to run on a slightly faster code path if they know that non-strict mode can never be run.
The text was updated successfully, but these errors were encountered:
This is just to expand on this comment.
Basically I'm proposing a policy that restricts what can run code that isn't in strict mode. For example
non-strict-mode none
would disable all attempts to run non-strict mode code (it would not upgrade it to strict mode as this changes behaviour).This would include all possible sources of running non-strict mode code:
<script>
tagseval
new Worker
serviceWorker.register
new Function
importScripts()
This could potentially allow engines to run on a slightly faster code path if they know that non-strict mode can never be run.
The text was updated successfully, but these errors were encountered: