From 15dec1ae288a48886200e601d3f7fc62f0d59a1d Mon Sep 17 00:00:00 2001 From: "rossberg@chromium.org" Date: Tue, 20 Nov 2012 14:41:20 +0000 Subject: [PATCH] Missing check for exception. R=mstarzinger@chromium.org BUG= Review URL: https://codereview.chromium.org/11316104 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13015 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/runtime.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime.cc b/src/runtime.cc index 838681f..252b624 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -1109,6 +1109,7 @@ static MaybeObject* GetOwnProperty(Isolate* isolate, elms->set(WRITABLE_INDEX, heap->ToBoolean((attrs & READ_ONLY) == 0)); // GetProperty does access check. Handle value = GetProperty(obj, name); + if (value.is_null()) return Failure::Exception(); elms->set(VALUE_INDEX, *value); } else { // Access checks are performed for both accessors separately. -- 2.7.4