Commit b84d0776 authored by ricow@chromium.org's avatar ricow@chromium.org

Change DefineOrRedefineDataProperty to use local lookup (fix issue 1435).

This prevents us from normalizing when we do not need to.
Review URL: http://codereview.chromium.org/7168012

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8296 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 23d0aa61
...@@ -3905,7 +3905,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DefineOrRedefineDataProperty) { ...@@ -3905,7 +3905,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DefineOrRedefineDataProperty) {
} }
LookupResult result; LookupResult result;
js_object->LookupRealNamedProperty(*name, &result); js_object->LocalLookupRealNamedProperty(*name, &result);
// To be compatible with safari we do not change the value on API objects // To be compatible with safari we do not change the value on API objects
// in defineProperty. Firefox disagrees here, and actually changes the value. // in defineProperty. Firefox disagrees here, and actually changes the value.
......
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