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

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

Issue 1027283004: [es6] do not add caller/arguments to ES6 function definitions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove unneeded bits Created 5 years, 9 months 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
Index: test/mjsunit/harmony/computed-property-names-classes.js
diff --git a/test/mjsunit/harmony/computed-property-names-classes.js b/test/mjsunit/harmony/computed-property-names-classes.js
index ab5d39e867c65b9658a01a3f6d4727d05173254c..0a8825277066cc76402c766710313d2897f82874 100644
--- a/test/mjsunit/harmony/computed-property-names-classes.js
+++ b/test/mjsunit/harmony/computed-property-names-classes.js
@@ -83,7 +83,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', 'arguments', 'caller', 'prototype',
+ assertArrayEquals(['length', 'name', 'prototype',
'a', 'b', 'c', 'd'],
Object.getOwnPropertyNames(C));
})();
@@ -102,7 +102,7 @@ function ID(x) {
assertEquals('D', C[2]());
// Array indexes first.
assertArrayEquals([], Object.keys(C));
- assertArrayEquals(['1', '2', 'length', 'name', 'arguments', 'caller',
+ assertArrayEquals(['1', '2', 'length', 'name',
'prototype', 'a', 'c'], Object.getOwnPropertyNames(C));
})();
@@ -121,7 +121,7 @@ function ID(x) {
assertEquals('C', C.c());
assertEquals('D', C[sym2]());
assertArrayEquals([], Object.keys(C));
- assertArrayEquals(['length', 'name', 'arguments', 'caller', 'prototype',
+ assertArrayEquals(['length', 'name', 'prototype',
'a', 'c'],
Object.getOwnPropertyNames(C));
assertArrayEquals([sym1, sym2], Object.getOwnPropertySymbols(C));

Powered by Google App Engine
This is Rietveld 408576698