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

Side by Side Diff: test/mjsunit/es6/reflect-construct.js

Issue 2034083002: Don't compile functions in a context the caller doesn't have access to (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 5 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/cross-realm-filtering.js ('k') | no next file » | 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 //
5 // Flags: --allow-unsafe-function-constructor
4 6
5 7
6 (function testReflectConstructArity() { 8 (function testReflectConstructArity() {
7 assertEquals(2, Reflect.construct.length); 9 assertEquals(2, Reflect.construct.length);
8 })(); 10 })();
9 11
10 12
11 (function testReflectConstructNonConstructor() { 13 (function testReflectConstructNonConstructor() {
12 assertThrows(function() { 14 assertThrows(function() {
13 new Reflect.construct(function(){}, []); 15 new Reflect.construct(function(){}, []);
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 for (var realm of [realm1, realm2]) { 369 for (var realm of [realm1, realm2]) {
368 test(realm, getname(intrinsic), getargs(intrinsic), convert); 370 test(realm, getname(intrinsic), getargs(intrinsic), convert);
369 } 371 }
370 } 372 }
371 } 373 }
372 374
373 test_all(test_intrinsic_default, (v)=>v); 375 test_all(test_intrinsic_default, (v)=>v);
374 test_all(test_intrinsic_default, 376 test_all(test_intrinsic_default,
375 (v)=>{ "use strict"; return class extends v {}}); 377 (v)=>{ "use strict"; return class extends v {}});
376 })(); 378 })();
OLDNEW
« no previous file with comments | « test/mjsunit/cross-realm-filtering.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698