Commit 15721154 authored by adamk@chromium.org's avatar adamk@chromium.org

Fix breakage on V8 Linux - nosse2

This was introduced by https://code.google.com/p/v8/source/detail?r=20857

R=adamk@chromium.org
TBR=mstarzinger@chromium.org

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

Patch from Erik Arvidsson <arv@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20858 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 3308cb58
......@@ -41,12 +41,14 @@ void CheckIterResultObject(Isolate* isolate,
Handle<JSObject> result,
Handle<Object> value,
bool done) {
CHECK(Object::GetProperty(isolate, result, "value").ToHandleChecked()
->SameValue(*value));
CHECK(Object::GetProperty(isolate, result, "done").ToHandleChecked()
->IsBoolean());
CHECK_EQ(Object::GetProperty(isolate, result, "done").ToHandleChecked()
->BooleanValue(), done);
Handle<Object> value_object =
Object::GetProperty(isolate, result, "value").ToHandleChecked();
Handle<Object> done_object =
Object::GetProperty(isolate, result, "done").ToHandleChecked();
CHECK_EQ(*value_object, *value);
CHECK(done_object->IsBoolean());
CHECK_EQ(done_object->BooleanValue(), done);
}
......
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