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

Side by Side Diff: test/mjsunit/es6/proxies-with-unscopables.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/es6/proxies-with.js ('k') | test/mjsunit/es6/reflect.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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-proxies
6
7 5
8 function TestBasics() { 6 function TestBasics() {
9 var log = []; 7 var log = [];
10 8
11 var proxy = new Proxy({}, { 9 var proxy = new Proxy({}, {
12 get: function(target, key) { 10 get: function(target, key) {
13 log.push("get " + String(key)); 11 log.push("get " + String(key));
14 if (key === 'x') return 1; 12 if (key === 'x') return 1;
15 }, 13 },
16 has: function(target, key) { 14 has: function(target, key) {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 137
140 global.x = 2; 138 global.x = 2;
141 assertEquals(2, global.x); 139 assertEquals(2, global.x);
142 assertEquals(2, x); 140 assertEquals(2, x);
143 141
144 x = 3; 142 x = 3;
145 assertEquals(3, global.x); 143 assertEquals(3, global.x);
146 assertEquals(3, x); 144 assertEquals(3, x);
147 } 145 }
148 TestGlobalShouldIgnoreUnscopables(); 146 TestGlobalShouldIgnoreUnscopables();
OLDNEW
« no previous file with comments | « test/mjsunit/es6/proxies-with.js ('k') | test/mjsunit/es6/reflect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698