Skip to content

Conversation

michaelficarra
Copy link
Member

In #1560, we discovered that deferring NamedEvaluation to the evaluation algorithm for ClassExpressions would cause an undesirable change in behaviour. So this PR is the alternative: keep NamedEvaluation of ClassExpression special and set its [[SourceText]] slot.

This should be the last missing [[SourceText]] slot 🤞.

@michaelficarra michaelficarra requested review from ljharb and jmdyck June 4, 2019 19:19
@ljharb ljharb added normative change Affects behavior required to correctly evaluate some ECMAScript source text spec bug labels Jun 4, 2019
@ljharb ljharb requested review from zenparsing and a team June 4, 2019 19:27
@jmdyck
Copy link
Collaborator

jmdyck commented Jun 4, 2019

@anba has this change in the first commit of #1490.

@ljharb
Copy link
Member

ljharb commented Jun 4, 2019

That's a larger PR, so it'd be good to land this first :-)

@jmdyck
Copy link
Collaborator

jmdyck commented Jun 4, 2019

Okay, wasn't sure about protocol.

Copy link
Collaborator

@jmdyck jmdyck left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@ljharb ljharb self-assigned this Jul 17, 2019
@ljharb ljharb changed the title set [[SourceText]] in NamedEvaluation of ClassExpression Normative: set [[SourceText]] in NamedEvaluation of ClassExpression Jul 17, 2019
@ljharb ljharb force-pushed the namedevaluation-classexpression branch from 98ea9f9 to 446956a Compare July 18, 2019 05:48
@ljharb ljharb merged commit 446956a into tc39:master Jul 18, 2019
@michaelficarra michaelficarra deleted the namedevaluation-classexpression branch July 18, 2019 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
normative change Affects behavior required to correctly evaluate some ECMAScript source text spec bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants