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

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: Rebase + test262 exceptions Created 5 years, 8 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..e8cae460a534917bf32479baca00ec7cc7ef4dad 100644
--- a/test/mjsunit/harmony/computed-property-names-classes.js
+++ b/test/mjsunit/harmony/computed-property-names-classes.js
@@ -83,9 +83,8 @@ 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',
- 'a', 'b', 'c', 'd'],
- Object.getOwnPropertyNames(C));
+ assertArrayEquals(['length', 'name', 'prototype', 'a', 'b', 'c', 'd'],
+ Object.getOwnPropertyNames(C));
})();
@@ -102,8 +101,8 @@ function ID(x) {
assertEquals('D', C[2]());
// Array indexes first.
assertArrayEquals([], Object.keys(C));
- assertArrayEquals(['1', '2', 'length', 'name', 'arguments', 'caller',
- 'prototype', 'a', 'c'], Object.getOwnPropertyNames(C));
+ assertArrayEquals(['1', '2', 'length', 'name', 'prototype', 'a', 'c'],
+ Object.getOwnPropertyNames(C));
})();
@@ -121,9 +120,8 @@ function ID(x) {
assertEquals('C', C.c());
assertEquals('D', C[sym2]());
assertArrayEquals([], Object.keys(C));
- assertArrayEquals(['length', 'name', 'arguments', 'caller', 'prototype',
- 'a', 'c'],
- Object.getOwnPropertyNames(C));
+ assertArrayEquals(['length', 'name', 'prototype', 'a', 'c'],
+ Object.getOwnPropertyNames(C));
assertArrayEquals([sym1, sym2], Object.getOwnPropertySymbols(C));
})();

Powered by Google App Engine
This is Rietveld 408576698