mirror of https://github.com/tc39/test262.git
Check for intended semantics
This commit is contained in:
parent
ab6809cf47
commit
eace19ef91
|
@ -8,7 +8,6 @@ description: >
|
|||
non-writable. Perform property attribute changes with two
|
||||
[[DefineOwnProperty]] calls. Add intervening call to
|
||||
SetMutableBinding.
|
||||
Specification bug: https://bugs.ecmascript.org/show_bug.cgi?id=4371
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
|
@ -17,11 +16,13 @@ function argumentsNonConfigurableThenNonWritableWithInterveningSetMutableBinding
|
|||
a = 2;
|
||||
Object.defineProperty(arguments, "0", {writable: false});
|
||||
assert.sameValue(a, 2);
|
||||
assert.sameValue(arguments[0], 1);
|
||||
// `arguments[0] === 1` per ES2015, Rev 38, April 14, 2015 Final Draft.
|
||||
// Specification bug: https://bugs.ecmascript.org/show_bug.cgi?id=4371
|
||||
assert.sameValue(arguments[0], 2);
|
||||
|
||||
// Postcondition: Arguments mapping is removed.
|
||||
a = 3;
|
||||
assert.sameValue(a, 3);
|
||||
assert.sameValue(arguments[0], 1);
|
||||
assert.sameValue(arguments[0], 2);
|
||||
}
|
||||
argumentsNonConfigurableThenNonWritableWithInterveningSetMutableBinding(1);
|
||||
|
|
Loading…
Reference in New Issue