Revision: 12996
Author:   [email protected]
Date:     Mon Nov 19 01:43:56 2012
Log:      Fix sequence point bug.

[email protected]
BUG=

Review URL: https://codereview.chromium.org/11308090
http://code.google.com/p/v8/source/detail?r=12996

Modified:
 /branches/bleeding_edge/src/runtime.cc

=======================================
--- /branches/bleeding_edge/src/runtime.cc      Fri Nov 16 06:24:19 2012
+++ /branches/bleeding_edge/src/runtime.cc      Mon Nov 19 01:43:56 2012
@@ -1109,7 +1109,8 @@
   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.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to