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

Side by Side Diff: test/mjsunit/es6/proxies-construct.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-bind.js ('k') | test/mjsunit/es6/proxies-cross-realm-exception.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 --harmony-reflect
6
7 (function testNonConstructable() { 5 (function testNonConstructable() {
8 var proxy = new Proxy({},{}); 6 var proxy = new Proxy({},{});
9 assertThrows(function(){ new proxy() }, TypeError); 7 assertThrows(function(){ new proxy() }, TypeError);
10 8
11 var proxy2 = new Proxy(proxy, {}); 9 var proxy2 = new Proxy(proxy, {});
12 assertThrows(function(){ proxy2() }, TypeError); 10 assertThrows(function(){ proxy2() }, TypeError);
13 })(); 11 })();
14 12
15 (function testFailingConstructRevoked() { 13 (function testFailingConstructRevoked() {
16 var pair = Proxy.revocable(Array, {}); 14 var pair = Proxy.revocable(Array, {});
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 147
150 var result3 = ReflectConstructRealm1(proxy, []); 148 var result3 = ReflectConstructRealm1(proxy, []);
151 assertSame(Realm.eval(realm1, 'Array.prototype'), 149 assertSame(Realm.eval(realm1, 'Array.prototype'),
152 Reflect.getPrototypeOf(result3)); 150 Reflect.getPrototypeOf(result3));
153 151
154 var ReflectConstructRealm2 = Realm.eval(realm2, 'Reflect.construct'); 152 var ReflectConstructRealm2 = Realm.eval(realm2, 'Reflect.construct');
155 var result4 = ReflectConstructRealm2(proxy, argsRealm1); 153 var result4 = ReflectConstructRealm2(proxy, argsRealm1);
156 assertSame(Realm.eval(realm2, 'Array.prototype'), 154 assertSame(Realm.eval(realm2, 'Array.prototype'),
157 Reflect.getPrototypeOf(result4)); 155 Reflect.getPrototypeOf(result4));
158 })(); 156 })();
OLDNEW
« no previous file with comments | « test/mjsunit/es6/proxies-bind.js ('k') | test/mjsunit/es6/proxies-cross-realm-exception.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698