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

Unified Diff: test/mjsunit/object-freeze-global.js

Issue 776143005: Optimize Object.seal and Object.preventExtensions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add support for preventExtensions Created 6 years 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/object-freeze-global.js
diff --git a/test/mjsunit/regress/regress-crbug-351262.js b/test/mjsunit/object-freeze-global.js
similarity index 75%
copy from test/mjsunit/regress/regress-crbug-351262.js
copy to test/mjsunit/object-freeze-global.js
index a2f4eadc0de5c2bd7d27f6e78ff9940fce7b0f85..8ab5b8529bc90719a4051412f321cd4de507db75 100644
--- a/test/mjsunit/regress/regress-crbug-351262.js
+++ b/test/mjsunit/object-freeze-global.js
@@ -2,5 +2,5 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-for (var x in this) {};
-JSON.stringify(this);
+Object.freeze(this);
+assertTrue(Object.isFrozen(this));

Powered by Google App Engine
This is Rietveld 408576698