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

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

Issue 1815773002: Remove runtime flags for Proxy and Reflect (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/harmony/object-entries.js ('k') | test/mjsunit/harmony/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 5 // Flags: --harmony-object-own-property-descriptors
6 // Flags: --harmony-proxies --harmony-reflect --allow-natives-syntax 6 // Flags: --allow-natives-syntax
7 7
8 function DataDescriptor(value) { 8 function DataDescriptor(value) {
9 return { "enumerable": true, "configurable": true, "writable": true, value }; 9 return { "enumerable": true, "configurable": true, "writable": true, value };
10 } 10 }
11 11
12 12
13 function TestMeta() { 13 function TestMeta() {
14 assertEquals(1, Object.getOwnPropertyDescriptors.length); 14 assertEquals(1, Object.getOwnPropertyDescriptors.length);
15 assertEquals(Function.prototype, 15 assertEquals(Function.prototype,
16 Object.getPrototypeOf(Object.getOwnPropertyDescriptors)); 16 Object.getPrototypeOf(Object.getOwnPropertyDescriptors));
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 var result = Object.getOwnPropertyDescriptors(P); 197 var result = Object.getOwnPropertyDescriptors(P);
198 assertEquals({ "A": undefined }, result); 198 assertEquals({ "A": undefined }, result);
199 assertTrue(result.hasOwnProperty("A")); 199 assertTrue(result.hasOwnProperty("A"));
200 assertEquals([ 200 assertEquals([
201 "ownKeys()", 201 "ownKeys()",
202 "getOwnPropertyDescriptor(A)", 202 "getOwnPropertyDescriptor(A)",
203 "getOwnPropertyDescriptor(A)" 203 "getOwnPropertyDescriptor(A)"
204 ], log); 204 ], log);
205 } 205 }
206 TestDuplicateKeys(); 206 TestDuplicateKeys();
OLDNEW
« no previous file with comments | « test/mjsunit/harmony/object-entries.js ('k') | test/mjsunit/harmony/object-values.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698