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

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

Issue 776143005: Optimize Object.seal and Object.preventExtensions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add nonextensible and sealed as special transitions 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
« no previous file with comments | « test/mjsunit/object-seal.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/object-seal-global.js
diff --git a/test/mjsunit/es6/regress/regress-crbug-346141.js b/test/mjsunit/object-seal-global.js
similarity index 65%
copy from test/mjsunit/es6/regress/regress-crbug-346141.js
copy to test/mjsunit/object-seal-global.js
index 2b9655e174459088401996b884c4a5d7e02eb919..ec9f82e9bff5c73208b08b8a69c84405b2a5e823 100644
--- a/test/mjsunit/es6/regress/regress-crbug-346141.js
+++ b/test/mjsunit/object-seal-global.js
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var s = Symbol()
-var o = {}
-o[s] = 2
-o[""] = 3
-Object.getOwnPropertySymbols(o)
+Object.seal(this);
+assertTrue(Object.isSealed(this));
+assertFalse(Object.isFrozen(this));
« no previous file with comments | « test/mjsunit/object-seal.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698