-
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
Spec fixes, applies review feedback #309
Conversation
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.
This covers the always false variables and the realms wording from my review. stamped from my side
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.
lgtm, thanks
spec.html
Outdated
1. If _inFunction_ is *false*, and _body_ Contains |NewTarget|, throw a *SyntaxError* exception. | ||
1. If _inMethod_ is *false*, and _body_ Contains |SuperProperty|, throw a *SyntaxError* exception. | ||
1. If _inDerivedConstructor_ is *false*, and _body_ Contains |SuperCall|, throw a *SyntaxError* exception. | ||
1. If _body_ Contains |NewTarget|, throw a *SyntaxError* exception. |
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.
Nit: Here and below, it should _body_ Contains |Foo| is *true*
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.
@@ -136,17 +137,14 @@ <h1>PerformRealmEval ( _sourceText_, _callerRealm_, _evalRealm_ )</h1> | |||
1. Assert: _callerRealm_ is a Realm Record. | |||
1. Assert: _evalRealm_ is a Realm Record. | |||
1. Perform ? HostEnsureCanCompileStrings(_callerRealm_, _evalRealm_). | |||
1. Let _inFunction_ be *false*. |
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.
this form was copied from https://tc39.es/ecma262/#sec-performeval. My bad, because the flag for direct eval is not longer needed, therefore these lets declarations are not needed anymore. Good catch!
1. For each element _key_ of _argumentsList_, do | ||
1. Let _o_ be _argumentsList_[_key_]. | ||
1. Set _argumentsList_[_key_] to ? GetWrappedValue(_targetRealm_, _o_). | ||
1. Let _wrappedArgs_ be a new empty List. |
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.
this was me being lazy! jajaja... good catch!
Ref #304 (comment)