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

Unified Diff: test/mjsunit/realm-property-access.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, 6 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 side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/realm-property-access.js
diff --git a/test/mjsunit/realm-property-access.js b/test/mjsunit/realm-property-access.js
index 679886d66a8a81d5b163ea9070fdafb268e98280..a95d9852c7ef8a74aa01e7a2d6ff257ae774436e 100644
--- a/test/mjsunit/realm-property-access.js
+++ b/test/mjsunit/realm-property-access.js
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// Flags: --restricted-realms
+
var r = Realm.create();
var f = Realm.eval(r, "function f() { return this }; f()");
assertEquals(f, Realm.global(r));
« test/mjsunit/cross-realm-filtering.js ('K') | « test/mjsunit/lookup-behind-property.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698