archives

« Bugzilla Issues Index

#3695 — 7.4.6 IteratorClose, 14.4.15 Evaluation yield*: HasProperty + Invoke vs. GetMethod


7.4.6 IteratorClose( iterator, completion )

14.4.15 Runtime Semantics: Evaluation
YieldExpression : yield * AssignmentExpression


Using HasProperty + Invoke means two property lookups and it makes it impossible for generator subclasses to opt-out of "return" or "throw". For 22.1.2.1 Array.from it was even decided that two property lookups should be avoided because of possible side-effects in the first property lookup.

Too late to change to use GetMethod instead of HasProperty + Invoke?


fixed in rev32 editor's draft


fixed in rev32 draft