browser.js |
|
0 |
shell.js |
|
0 |
star-iterable-return-emulates-undefined-throws-when-called.js |
---
esid: sec-generator-function-definitions-runtime-semantics-evaluation
description: >
If <iterator>.return is an object emulating `undefined` (e.g. `document.all`
in browsers), it shouldn't be treated as if it were actually `undefined` by
the yield* operator.
features: [generators, IsHTMLDDA]
--- |
1077 |
star-iterable-throw-emulates-undefined-throws-when-called.js |
---
esid: sec-generator-function-definitions-runtime-semantics-evaluation
description: >
If <iterator>.throw is an object emulating `undefined` (e.g. `document.all`
in browsers), it shouldn't be treated as if it were actually `undefined` by
the yield* operator.
info: |
YieldExpression : yield * AssignmentExpression
[...]
7. Repeat,
[...]
b. Else if received.[[Type]] is throw, then
i. Let throw be ? GetMethod(iterator, "throw").
ii. If throw is not undefined, then
1. Let innerResult be ? Call(throw, iterator, « received.[[Value]] »).
[...]
4. If Type(innerResult) is not Object, throw a TypeError exception.
features: [generators, IsHTMLDDA]
--- |
1600 |