array-pattern-emulates-undefined.js |
---
esid: sec-destructuring-binding-patterns-runtime-semantics-bindinginitialization
description: >
Destructuring initializer is not evaluated when value is an object
with [[IsHTMLDDA]] internal slot.
info: |
BindingPattern : ArrayBindingPattern
1. Let iteratorRecord be ? GetIterator(value).
2. Let result be IteratorBindingInitialization of ArrayBindingPattern with arguments
iteratorRecord and environment.
3. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iteratorRecord, result).
4. Return result.
Runtime Semantics: IteratorBindingInitialization
SingleNameBinding : BindingIdentifier Initializer[opt]
[...]
5. If Initializer is present and v is undefined, then
[...]
6. If environment is undefined, return ? PutValue(lhs, v).
features: [destructuring-binding, IsHTMLDDA]
--- |
1191 |
browser.js |
|
0 |
object-pattern-emulates-undefined.js |
---
esid: sec-destructuring-binding-patterns-runtime-semantics-bindinginitialization
description: >
Destructuring initializer is not evaluated when value is an object
with [[IsHTMLDDA]] internal slot.
info: |
BindingPattern : ObjectBindingPattern
1. Perform ? RequireObjectCoercible(value).
2. Return the result of performing BindingInitialization for
ObjectBindingPattern using value and environment as arguments.
Runtime Semantics: KeyedBindingInitialization
SingleNameBinding : BindingIdentifier Initializer[opt]
[...]
4. If Initializer is present and v is undefined, then
[...]
5. If environment is undefined, return ? PutValue(lhs, v).
features: [destructuring-binding, IsHTMLDDA]
--- |
1086 |
shell.js |
|
0 |