archives

« Bugzilla Issues Index

#3236 — 12.3.3.1.1 EvaluateNew, 12.3.5.2 Evaluation: Replace prose with call to ArgumentListEvaluation


12.3.3.1.1 Runtime Semantics: EvaluateNew(thisCall, constructProduction, arguments)
12.3.5.2 Runtime Semantics: Evaluation
MemberExpression : new super Arguments

The current text:

> Let argList be the result of evaluating Arguments, producing a List of argument values (12.3.6).

Can be replaced with:

> Let argList be ArgumentListEvaluation(arguments).

And in 12.3.5.2 with:

> Let argList be ArgumentListEvaluation(Arguments).



Also: Typo in 12.3.3.1.1, step 8a "Arguments" -> "arguments"


Also: Can EvaluateNew be restructured, so that the duplicated text for "MemberExpression : new super Arguments" and "NewExpression : new super" gets away?


fixed in rev28 editor's draft.

the bugs, that is.

I don't see an obviously way to further simply as the text for "MemberExpression : new super Arguments" and "NewExpression : new super" is just setup for EvaluateNew.


(In reply to Allen Wirfs-Brock from comment #1)
> I don't see an obviously way to further simply as the text for
> "MemberExpression : new super Arguments" and "NewExpression : new super" is
> just setup for EvaluateNew.

"MemberExpression : new super Arguments" and "NewExpression : new super" don't use EvaluateNew in rev27, maybe this was already changed for rev28? Basically I was just asking if it makes sense to restructure EvaluateNew so it works similar to EvaluateCall. Something like: https://gist.github.com/anba/513f97a86f8a44182606


fixed in rev28