summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/NumberObject.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-08-09 12:55:08 -0400
committerAndreas Kling <kling@serenityos.org>2021-08-10 23:07:50 +0200
commit34bd25f6c280070581661bd7708830c772bfa604 (patch)
tree8ad667c9c9fb963cc602dc155da1addf2a42c62e /Userland/Libraries/LibJS/Runtime/NumberObject.cpp
parent6c45620709673db9ab82440c2fca7f0485fc23b9 (diff)
downloadserenity-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/NumberObject.cpp')
0 files changed, 0 insertions, 0 deletions