Fix assert in Runtime_SetIsObserved.
R=rafaelw@chromium.org BUG=chromium:352664 LOG=N Review URL: https://codereview.chromium.org/204493002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20440 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
ca6b727665
commit
56e8a26e09
@ -5645,11 +5645,9 @@ Handle<Object> JSObject::Freeze(Handle<JSObject> object) {
|
||||
|
||||
|
||||
void JSObject::SetObserved(Handle<JSObject> object) {
|
||||
ASSERT(!object->map()->is_observed());
|
||||
Isolate* isolate = object->GetIsolate();
|
||||
|
||||
if (object->map()->is_observed())
|
||||
return;
|
||||
|
||||
LookupResult result(isolate);
|
||||
object->map()->LookupTransition(*object,
|
||||
isolate->heap()->observed_symbol(),
|
||||
|
@ -14882,8 +14882,6 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetIsObserved) {
|
||||
if (obj->IsJSProxy())
|
||||
return isolate->heap()->undefined_value();
|
||||
|
||||
ASSERT(!(obj->map()->is_observed() && obj->IsJSObject() &&
|
||||
Handle<JSObject>::cast(obj)->HasFastElements()));
|
||||
ASSERT(obj->IsJSObject());
|
||||
JSObject::SetObserved(Handle<JSObject>::cast(obj));
|
||||
return isolate->heap()->undefined_value();
|
||||
|
Loading…
Reference in New Issue
Block a user