Changeset 130424 in webkit for trunk/Source/JavaScriptCore/API/JSValueRef.cpp
- Timestamp:
- Oct 4, 2012, 1:27:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSValueRef.cpp
r130303 r130424 236 236 APIEntryShim entryShim(exec); 237 237 String str = string->string(); 238 if (str.is8Bit()) { 239 LiteralParser<LChar> parser(exec, str.characters8(), str.length(), StrictJSON); 238 unsigned length = str.length(); 239 if (length && str.is8Bit()) { 240 LiteralParser<LChar> parser(exec, str.characters8(), length, StrictJSON); 240 241 return toRef(exec, parser.tryLiteralParse()); 241 242 } 242 LiteralParser<UChar> parser(exec, str.characters 16(), str.length(), StrictJSON);243 LiteralParser<UChar> parser(exec, str.characters(), length, StrictJSON); 243 244 return toRef(exec, parser.tryLiteralParse()); 244 245 }
Note:
See TracChangeset
for help on using the changeset viewer.