Changeset 223645 in webkit for trunk/Source/JavaScriptCore/runtime/RegExpObject.cpp
- Timestamp:
- Oct 18, 2017, 6:12:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/RegExpObject.cpp
r222473 r223645 121 121 if (descriptor.writablePresent() && descriptor.writable()) 122 122 return typeError(exec, scope, shouldThrow, ASCIILiteral(UnconfigurablePropertyChangeWritabilityError)); 123 if ( !sameValue(exec, regExp->getLastIndex(), descriptor.value()))123 if (descriptor.value() && !sameValue(exec, regExp->getLastIndex(), descriptor.value())) 124 124 return typeError(exec, scope, shouldThrow, ASCIILiteral(ReadonlyPropertyChangeError)); 125 125 return true;
Note:
See TracChangeset
for help on using the changeset viewer.