From eace19ef91ca13d38b47f3e999d0e7fc068801ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Wed, 20 May 2015 22:13:17 +0200 Subject: [PATCH] Check for intended semantics --- .../mapped-arguments-nonconfigurable-nonwritable-3.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/language/arguments-object/mapped/mapped-arguments-nonconfigurable-nonwritable-3.js b/test/language/arguments-object/mapped/mapped-arguments-nonconfigurable-nonwritable-3.js index aac554c2f3..dca0adcd23 100755 --- a/test/language/arguments-object/mapped/mapped-arguments-nonconfigurable-nonwritable-3.js +++ b/test/language/arguments-object/mapped/mapped-arguments-nonconfigurable-nonwritable-3.js @@ -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);