Changeset 52981 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Jan 8, 2010, 3:17:27 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/RegExpPrototype.cpp
r52028 r52981 115 115 if (asRegExpObject(thisValue)->get(exec, exec->propertyNames().multiline).toBoolean(exec)) 116 116 postfix[index] = 'm'; 117 118 return jsNontrivialString(exec, makeString("/", asRegExpObject(thisValue)->get(exec, exec->propertyNames().source).toString(exec), postfix));117 UString source = asRegExpObject(thisValue)->get(exec, exec->propertyNames().source).toString(exec); 118 return jsNontrivialString(exec, makeString("/", source.size() ? source : UString("(?:)"), postfix)); 119 119 } 120 120
Note:
See TracChangeset
for help on using the changeset viewer.