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

Unified Diff: test/mjsunit/regress/regress-5181.js

Issue 2129563002: [ForIn] Fix HasEnumerableProperty for Proxies with null prototype (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-forin.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-5181.js
diff --git a/test/mjsunit/regress/regress-crbug-578039-Proxy_construct_prototype_change.js b/test/mjsunit/regress/regress-5181.js
similarity index 61%
copy from test/mjsunit/regress/regress-crbug-578039-Proxy_construct_prototype_change.js
copy to test/mjsunit/regress/regress-5181.js
index 30b3f219e9a1a733fefdac8b92a1e01b6be58f7e..d8dfc4a0b6e4690d6d1b0fb57a621e54cff30242 100644
--- a/test/mjsunit/regress/regress-crbug-578039-Proxy_construct_prototype_change.js
+++ b/test/mjsunit/regress/regress-5181.js
@@ -2,13 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
-function target() {};
-
+var target = Object.create(null);
var proxy = new Proxy(target, {
- get() {
- // Reset the initial map of the target.
- target.prototype = 123;
- }});
-
-new proxy();
+ ownKeys: function() {
+ return ['a'];
+ }
+});
+for (var key in proxy) ;
« no previous file with comments | « src/runtime/runtime-forin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698