Commit 3e8047ec authored by rossberg@chromium.org's avatar rossberg@chromium.org

Fix sequence point bug.

R=mstarzinger@chromium.org
BUG=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12996 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 515c5561
......@@ -1109,7 +1109,8 @@ static MaybeObject* GetOwnProperty(Isolate* isolate,
if (accessors == NULL) {
elms->set(WRITABLE_INDEX, heap->ToBoolean((attrs & READ_ONLY) == 0));
// GetProperty does access check.
elms->set(VALUE_INDEX, *GetProperty(obj, name));
Handle<Object> value = GetProperty(obj, name);
elms->set(VALUE_INDEX, *value);
} else {
// Access checks are performed for both accessors separately.
// When they fail, the respective field is not set in the descriptor.
......
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