Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium

New issue 1435 by [email protected]: Unnecessary normalization in Runtime_DefineOrRedefineDataProperty
http://code.google.com/p/v8/issues/detail?id=1435

Runtime_DefineOrRedefineDataProperty uses JSObject::LookupRealNamedProperty instead of JSObject::LocalLookupRealNamedProperty to check for existing property. This might lead to unnecessary normalization if the property exists on prototype. Example:

var p = Object.create(Object.prototype, { x : { enumerable: false, writable: true, configurable: true } });
var obj = Object.create(p, { x : { enumerable: false } });

Resulting obj will be normalized.

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

Reply via email to