Ignore:
Timestamp:
Feb 8, 2010, 11:40:57 PM (15 years ago)
Author:
[email protected]
Message:

Make String.replace throw an exception on out-of-memory, rather than
returning a null (err, empty-ish) string. Move String::replaceRange
and String::spliceSubstringsWithSeparators out to StringPrototype -
these were fairly specific use anyway, and we can better integrate
throwing the JS expcetion this way.

Reviewed by Oliver Hunt

Also removes redundant assignment operator from UString.

(JSC::StringRange::StringRange):
(JSC::jsSpliceSubstringsWithSeparators):
(JSC::jsReplaceRange):
(JSC::stringProtoFuncReplace):

  • runtime/UString.cpp:
  • runtime/UString.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r54464 r54531  
    241241__ZN3JSC7UStringC1EPKc
    242242__ZN3JSC7UStringC1EPKti
    243 __ZN3JSC7UStringaSEPKc
    244243__ZN3JSC8Debugger23recompileAllJSFunctionsEPNS_12JSGlobalDataE
    245244__ZN3JSC8Debugger6attachEPNS_14JSGlobalObjectE
Note: See TracChangeset for help on using the changeset viewer.