Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1322)

Unified Diff: test/mjsunit/es6/computed-property-names-classes.js

Issue 2423053002: Install the 'name' property in classes at runtime (Closed)
Patch Set: rebased Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/interpreter/test-bytecode-generator.cc ('k') | test/mjsunit/es6/function-name.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/computed-property-names-classes.js
diff --git a/test/mjsunit/es6/computed-property-names-classes.js b/test/mjsunit/es6/computed-property-names-classes.js
index eebf99aef5eab829be1d58bff31ac0c3a65d3bce..da8e1d8dcbbbae71c57bbd9e577403827e4d29bd 100644
--- a/test/mjsunit/es6/computed-property-names-classes.js
+++ b/test/mjsunit/es6/computed-property-names-classes.js
@@ -81,7 +81,7 @@ function ID(x) {
// TODO(arv): It is not clear that we are adding the "standard" properties
// in the right order. As far as I can tell the spec adds them in alphabetical
// order.
- assertArrayEquals(['length', 'name', 'prototype', 'a', 'b', 'c', 'd'],
+ assertArrayEquals(['length', 'prototype', 'a', 'b', 'c', 'd', 'name'],
Object.getOwnPropertyNames(C));
})();
@@ -99,7 +99,7 @@ function ID(x) {
assertEquals('D', C[2]());
// Array indexes first.
assertArrayEquals([], Object.keys(C));
- assertArrayEquals(['1', '2', 'length', 'name', 'prototype', 'a', 'c'],
+ assertArrayEquals(['1', '2', 'length', 'prototype', 'a', 'c', 'name'],
Object.getOwnPropertyNames(C));
})();
@@ -118,7 +118,7 @@ function ID(x) {
assertEquals('C', C.c());
assertEquals('D', C[sym2]());
assertArrayEquals([], Object.keys(C));
- assertArrayEquals(['length', 'name', 'prototype', 'a', 'c'],
+ assertArrayEquals(['length', 'prototype', 'a', 'c', 'name'],
Object.getOwnPropertyNames(C));
assertArrayEquals([sym1, sym2], Object.getOwnPropertySymbols(C));
})();
« no previous file with comments | « test/cctest/interpreter/test-bytecode-generator.cc ('k') | test/mjsunit/es6/function-name.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698