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

Running the same failing module script breaks ECMA assumptions #8553

Open
davidot opened this issue Nov 26, 2022 · 0 comments
Open

Running the same failing module script breaks ECMA assumptions #8553

davidot opened this issue Nov 26, 2022 · 0 comments

Comments

@davidot
Copy link

davidot commented Nov 26, 2022

Having a page like:

<script type="module" src="runtimefail.js"></script>
<script type="module" src="runtimefail.js"></script>

where runtimefail.js throws some non parse error.

Means the evaluate method of a Source Text Module Record is called twice.
This is a problem as described by tc39/ecma262#2823 .
It call Evaluate on the exact same module as modules are cached as described in https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-single-module-script .

To me it looks like this is a ECMAscript issue, but the An error to rethrow field of a script could perhaps provide an alternative way to solve this.

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

No branches or pull requests

1 participant