Bug 1007334 - Followup: Fix bogus test for new behavior on a CLOSED TREE. (r=jwalden over IRC)
authorEric Faust <efaustbmo@gmail.com>
Thu, 19 Jun 2014 16:41:46 -0700
changeset 189720 799a2838ed86ddb3f22535d92cfe0df201669dbc
parent 189719 d7ab14487c62ec69900c38152b2c7a1eae0bbb4d
child 189721 74fd773a5319ced7aa64206b80d32833d31bdff0
push id26994
push useremorley@mozilla.com
push dateFri, 20 Jun 2014 16:42:33 +0000
treeherdermozilla-central@892d7a8eda45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs1007334
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1007334 - Followup: Fix bogus test for new behavior on a CLOSED TREE. (r=jwalden over IRC)
js/src/jit-test/tests/proxy/testDirectProxyKeys9.js
--- a/js/src/jit-test/tests/proxy/testDirectProxyKeys9.js
+++ b/js/src/jit-test/tests/proxy/testDirectProxyKeys9.js
@@ -1,9 +1,9 @@
-// Return the names returned by the trap
+// Cull non-existent names returned by the trap.
 var names = Object.keys(new Proxy(Object.create(Object.create(null, {
     a: {
         enumerable: true,
         configurable: true
     },
     b: {
         enumerable: false,
         configurable: true
@@ -17,10 +17,9 @@ var names = Object.keys(new Proxy(Object
         enumerable: false,
         configurable: true
     }
 }), {
     ownKeys: function (target) {
         return [ 'e' ];
     }
 }));
-assertEq(names.length, 1);
-assertEq(names[0], 'e');
+assertEq(names.length, 0);