-
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
importScripts() wants a side-effect free version of "create a script" #193
Comments
domenic
added a commit
that referenced
this issue
Dec 15, 2015
This fixes #193, which notes that importScripts() previously sent errors down the "report an exception" path instead of rethrowing them. It also makes a slight change of rethrowing any early errors that are not SyntaxErrors, instead of converting early ReferenceErrors into SyntaxErrors.
domenic
added a commit
that referenced
this issue
Dec 15, 2015
This fixes #193, which notes that importScripts() previously sent errors down the "report an exception" path instead of rethrowing them. It also makes a slight change of rethrowing any early errors that are not SyntaxErrors, instead of converting early ReferenceErrors into SyntaxErrors.
domenic
added a commit
that referenced
this issue
Dec 15, 2015
This fixes #193, which notes that importScripts() previously sent errors down the "report an exception" path instead of rethrowing them. It also makes a slight change of rethrowing any early errors that are not SyntaxErrors, instead of converting early ReferenceErrors into SyntaxErrors.
domenic
added a commit
that referenced
this issue
Dec 16, 2015
This fixes #193, which notes that importScripts() previously sent errors down the "report an exception" path instead of rethrowing them. It also makes a slight change of rethrowing any early errors that are not SyntaxErrors, instead of converting early ReferenceErrors into SyntaxErrors.
domenic
added a commit
that referenced
this issue
Dec 17, 2015
This fixes #193, which notes that importScripts() previously sent errors down the "report an exception" path instead of rethrowing them. It also makes a slight change of rethrowing any early errors that are not SyntaxErrors, instead of converting early ReferenceErrors into SyntaxErrors.
domenic
added a commit
that referenced
this issue
Dec 18, 2015
This fixes #193, which notes that importScripts() previously sent errors down the "report an exception" path instead of rethrowing them. It also makes a slight change of rethrowing any early errors that are not SyntaxErrors, instead of converting early ReferenceErrors into SyntaxErrors.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not a 100% sure still, but the more I read, the more it seems like "create a script" has a side effect in step 7. It invokes "report an error" which ends up dispatching an event of sorts on the global.
However,
importScripts()
seems to expect it to rethrow.This came up in #166 which does some refactoring in that general area.
The text was updated successfully, but these errors were encountered: