Backed out changeset 456c1dcfe087 (bug 1341061)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Fri, 24 Feb 2017 23:09:59 +0100
changeset 489621 39be2cc943a7c3b48104811065ae0768de8eeaf6
parent 489620 87cfe603d44d3f82e5af3eefaf5944fd128e591a
child 489622 9e6402a66c388736bb193fcd4c9d40594785ca4b
push id46871
push userbmo:sledru@mozilla.com
push dateSat, 25 Feb 2017 12:16:21 +0000
bugs1341061
milestone54.0a1
backs out456c1dcfe087675f3ee80ce68ccb88ce56021cbc
Backed out changeset 456c1dcfe087 (bug 1341061)
js/src/tests/test262/local/browser.js
js/src/tests/test262/local/shell.js
js/src/tests/test262/local/unscopables-inc-dec.js
deleted file mode 100644
deleted file mode 100644
deleted file mode 100644
--- a/js/src/tests/test262/local/unscopables-inc-dec.js
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/*---
-description:
-  @@unscopables should be looked up exactly once for inc/dec.
-info: |
-  UpdateExpression : LeftHandSideExpression ++
-  1. Let lhs be the result of evaluating LeftHandSideExpression.
-
-  GetIdentifierReference ( lex, name, strict )
-  [...]
-  3. Let exists be ? envRec.HasBinding(name).
-
-  HasBinding ( N )
-  [...]
-  6. Let unscopables be ? Get(bindings, @@unscopables).
-flags: [noStrict]
-features: [Symbol.unscopables]
----*/
-
-var unscopablesGetterCalled = 0;
-var a, b, flag = true;
-with (a = { x: 7 }) {
-  with (b = { x: 4, get [Symbol.unscopables]() {
-                      unscopablesGetterCalled++;
-                      return { x: flag=!flag };
-                    } }) {
-    x++;
-  }
-}
-
-assert.sameValue(unscopablesGetterCalled, 1);
-assert.sameValue(a.x, 7);
-assert.sameValue(b.x, 5);
-
-flag = true;
-with (a = { x: 7 }) {
-  with (b = { x: 4, get [Symbol.unscopables]() {
-                      unscopablesGetterCalled++;
-                      return { x: flag=!flag };
-                    } }) {
-    x--;
-  }
-}
-
-assert.sameValue(unscopablesGetterCalled, 2);
-assert.sameValue(a.x, 7);
-assert.sameValue(b.x, 3);
-
-reportCompare(0,0);