-
Notifications
You must be signed in to change notification settings - Fork 67
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
Editorial: Address Gibson's feedback #318
Conversation
Ref #304 Comment: #304 (comment)
For the records: all the fixes here are purely editorial. |
I'm fine with that too... let's coercing it! |
@@ -172,6 +174,9 @@ <h1>PerformRealmEval ( _sourceText_, _callerRealm_, _evalRealm_ )</h1> | |||
<emu-note type=editor> | |||
Some steps from PerformRealmEval are shared with |eval| and |Function| and should result into a shared abstraction when merged to ECMA-262. | |||
</emu-note> | |||
<emu-note> | |||
This abstraction requires the performed evaluation to result into a normal completion. Otherwise, if the result is not a normal completion, the abstraction will throw a TypeError exception associated to its original running execution context. | |||
</emu-note>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case it hasn't already been cleaned up, there's a typo here.
</emu-note>> | |
</emu-note> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! I got that earlier today and fixed it already.
Ref Comment: #304 (comment)
cc @gibson042
Resolved in this PR:
Other bullet points:
I'll have a separate work for that.
importValue
is not simulating a static import so I don't believe a SyntaxError would fit. Everything else is a TypeError, even if the import is not successfully parsed, I believe the TypeError keeps consistency and this is due to the fact there isn't much information coming from what happened in the other Realm. A SyntaxError here would work specifically as a hasOwnProperty verification for the given module namespace.I believe this is resolved by #315, does it look good to you?
I believe Caridy answered this, but in any case, I believe it's all ok for
importValue
and I'm in favor of coercing theRealm.prototype.evaluate
argument to string but it is a different path compared toeval
.