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

Side by Side Diff: test/mjsunit/es8/object-get-own-property-descriptors.js

Issue 2464733003: Remove --harmony-* flags for new Object static methods (Closed)
Patch Set: Move tests to es8 Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/es8/object-entries.js ('k') | test/mjsunit/es8/object-values.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --harmony-object-own-property-descriptors
6 // Flags: --allow-natives-syntax 5 // Flags: --allow-natives-syntax
7 6
8 function DataDescriptor(value) { 7 function DataDescriptor(value) {
9 return { "enumerable": true, "configurable": true, "writable": true, value }; 8 return { "enumerable": true, "configurable": true, "writable": true, value };
10 } 9 }
11 10
12 11
13 function TestMeta() { 12 function TestMeta() {
14 assertEquals(1, Object.getOwnPropertyDescriptors.length); 13 assertEquals(1, Object.getOwnPropertyDescriptors.length);
15 assertEquals(Function.prototype, 14 assertEquals(Function.prototype,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 }); 225 });
227 var result = Object.getOwnPropertyDescriptors(P); 226 var result = Object.getOwnPropertyDescriptors(P);
228 assertEquals({}, result); 227 assertEquals({}, result);
229 assertFalse(result.hasOwnProperty("fakeProperty")); 228 assertFalse(result.hasOwnProperty("fakeProperty"));
230 assertEquals([ 229 assertEquals([
231 "ownKeys()", 230 "ownKeys()",
232 "getOwnPropertyDescriptor(fakeProperty)" 231 "getOwnPropertyDescriptor(fakeProperty)"
233 ], log); 232 ], log);
234 } 233 }
235 TestFakeProperty(); 234 TestFakeProperty();
OLDNEW
« no previous file with comments | « test/mjsunit/es8/object-entries.js ('k') | test/mjsunit/es8/object-values.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698