Navigation Menu

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

Remove undefined handling, remove shared-by-all-realms behavior #68

Merged
merged 2 commits into from Sep 13, 2022

Conversation

jridgewell
Copy link
Member

After #60, we no longer need to handle undefined in the input template strings array. That's because a well-formed raw array can only contain strings (only the cooked array can contain undefined).

Because we no longer have undefineds in our input, several of the AOs can remove branches for handling an empty block of lines.

This also fixes #64 by removing the "shared by all realms statement". That was an unintentional copy paste.

After #60, we no longer need to handle `undefined` in the input template strings array. That's because a well-formed `raw` array can **only** contain strings (only the `cooked` array can contain `undefined`).

Because we no longer have `undefined`s in our input, several of the AOs can remove branches for handling an empty block of lines.
spec.emu Outdated
@@ -120,7 +120,7 @@ markEffects: true
<h1>
DedentStringsArray (
_template_: an ECMAScript language value,
): either a normal completion containing a List of either String or *undefined*, or a throw completion
): either a normal completion containing a List of String, or a throw completion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
): either a normal completion containing a List of String, or a throw completion
): either a normal completion containing a List of Strings, or a throw completion

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@jridgewell jridgewell merged commit 7bfcc44 into master Sep 13, 2022
@jridgewell jridgewell deleted the remove-undefineds branch September 13, 2022 19:39
@bakkot bakkot mentioned this pull request Nov 10, 2022
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

Successfully merging this pull request may close these issues.

[Question] What's the motivation for GlobalDedentRegistry?
2 participants