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

Unified Diff: test/mjsunit/strong/functions.js

Issue 1168093002: [strong] Implement strong mode restrictions on property access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 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
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/mjsunit/strong/load-builtins.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/strong/functions.js
diff --git a/test/mjsunit/strong/functions.js b/test/mjsunit/strong/functions.js
index 6956462e5d5edcc45d17a92a83c929dba5eface5..a237270977d166f4eccc6141c26f9387c2f28196 100644
--- a/test/mjsunit/strong/functions.js
+++ b/test/mjsunit/strong/functions.js
@@ -47,8 +47,8 @@ function* g() {}
(function LexicalBindings(global) {
assertEquals('function', typeof f);
assertEquals('function', typeof g);
- assertEquals(undefined, global.f);
- assertEquals(undefined, global.g);
+ assertFalse(global.hasOwnProperty("f"));
+ assertFalse(global.hasOwnProperty("g"));
})(this);
(function ImmutableBindings() {
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/mjsunit/strong/load-builtins.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698