Skip to content
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

Feature idea: non-strict-mode #320

Open
Jamesernator opened this issue Jun 5, 2019 · 0 comments
Open

Feature idea: non-strict-mode #320

Jamesernator opened this issue Jun 5, 2019 · 0 comments

Comments

@Jamesernator
Copy link

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> 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant