Commit 62fc0993 authored by dcarney@chromium.org's avatar dcarney@chromium.org

fix bad access check check

R=verwaest@chromium.org

BUG=

Review URL: https://codereview.chromium.org/195163002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19804 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5b662703
...@@ -5912,9 +5912,9 @@ bool JSReceiver::IsSimpleEnum() { ...@@ -5912,9 +5912,9 @@ bool JSReceiver::IsSimpleEnum() {
JSObject* curr = JSObject::cast(o); JSObject* curr = JSObject::cast(o);
int enum_length = curr->map()->EnumLength(); int enum_length = curr->map()->EnumLength();
if (enum_length == kInvalidEnumCacheSentinel) return false; if (enum_length == kInvalidEnumCacheSentinel) return false;
if (curr->IsAccessCheckNeeded()) return false;
ASSERT(!curr->HasNamedInterceptor()); ASSERT(!curr->HasNamedInterceptor());
ASSERT(!curr->HasIndexedInterceptor()); ASSERT(!curr->HasIndexedInterceptor());
ASSERT(!curr->IsAccessCheckNeeded());
if (curr->NumberOfEnumElements() > 0) return false; if (curr->NumberOfEnumElements() > 0) return false;
if (curr != this && enum_length != 0) return false; if (curr != this && enum_length != 0) return false;
} }
......
// 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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment