Revision: 19804
Author: [email protected]
Date: Tue Mar 11 15:12:47 2014 UTC
Log: fix bad access check check
[email protected]
BUG=
Review URL: https://codereview.chromium.org/195163002
http://code.google.com/p/v8/source/detail?r=19804
Added:
/branches/bleeding_edge/test/mjsunit/regress/regress-crbug-351262.js
Modified:
/branches/bleeding_edge/src/objects.cc
=======================================
--- /dev/null
+++ /branches/bleeding_edge/test/mjsunit/regress/regress-crbug-351262.js
Tue Mar 11 15:12:47 2014 UTC
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// 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);
=======================================
--- /branches/bleeding_edge/src/objects.cc Tue Mar 11 14:41:22 2014 UTC
+++ /branches/bleeding_edge/src/objects.cc Tue Mar 11 15:12:47 2014 UTC
@@ -5912,9 +5912,9 @@
JSObject* curr = JSObject::cast(o);
int enum_length = curr->map()->EnumLength();
if (enum_length == kInvalidEnumCacheSentinel) return false;
+ if (curr->IsAccessCheckNeeded()) return false;
ASSERT(!curr->HasNamedInterceptor());
ASSERT(!curr->HasIndexedInterceptor());
- ASSERT(!curr->IsAccessCheckNeeded());
if (curr->NumberOfEnumElements() > 0) return false;
if (curr != this && enum_length != 0) return false;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.