diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-08-09 12:55:08 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-10 23:07:50 +0200 |
commit | 34bd25f6c280070581661bd7708830c772bfa604 (patch) | |
tree | 8ad667c9c9fb963cc602dc155da1addf2a42c62e /Userland/Libraries/LibJS/Runtime/FunctionObject.h | |
parent | 6c45620709673db9ab82440c2fca7f0485fc23b9 (diff) | |
download | serenity-34bd25f6c280070581661bd7708830c772bfa604.zip |
LibJS: Reduce copying of string data in RegExp.prototype
In addition to invoking js_string() with existing UTF-16 strings when
possible, RegExpExec now takes a Utf16String instead of a Utf16View. The
view was previously fully copied into the returned result object, so
this prevents potentially large copies of string data.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/FunctionObject.h')
0 files changed, 0 insertions, 0 deletions