Ignore:
Timestamp:
Jan 22, 2015, 11:34:34 AM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r178894.
https://bugs.webkit.org/show_bug.cgi?id=140775

Broke JSC and bindings tests (Requested by ap_ on #webkit).

Reverted changeset:

"put_by_val_direct need to check the property is index or not
for using putDirect / putDirectIndex"
https://bugs.webkit.org/show_bug.cgi?id=140426
http://trac.webkit.org/changeset/178894

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/StringObject.cpp

    r178894 r178928  
    129129    if (propertyName == exec->propertyNames().length)
    130130        return false;
    131     Optional<uint32_t> index = propertyName.asIndex();
    132     if (index && thisObject->internalValue()->canGetIndex(index.value())) {
     131    unsigned i = propertyName.asIndex();
     132    if (thisObject->internalValue()->canGetIndex(i)) {
     133        ASSERT(i != PropertyName::NotAnIndex); // No need for an explicit check, the above test would always fail!
    133134        return false;
    134135    }
Note: See TracChangeset for help on using the changeset viewer.