Summary: | Remove JSObject::propertyIsEnumerable | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Gavin Barraclough <barraclough> | ||||
Component: | JavaScriptCore | Assignee: | Gavin Barraclough <barraclough> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Gavin Barraclough
2013-08-21 11:50:34 PDT
Created attachment 209290 [details]
Fix
Comment on attachment 209290 [details] Fix View in context: https://bugs.webkit.org/attachment.cgi?id=209290&action=review > Source/JavaScriptCore/ChangeLog:8 > + This method just a wart. This sentence just a wart. > Source/JavaScriptCore/ChangeLog:9 > + Unnecessary const-casting, unnecessary function call, and less code if we remove. This sentence would be less words if we remove. > Source/JavaScriptCore/runtime/ObjectPrototype.cpp:188 > + PropertyDescriptor descriptor; > + bool enumerable = thisObject->getOwnPropertyDescriptor(exec, propertyName, descriptor) && descriptor.enumerable(); > + return JSValue::encode(jsBoolean(enumerable)); This should should have a FIXME saying to use getOwnPropertySlot when it no longer has the global object hack. Committed revision 154405. |