summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Array.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-06 22:03:52 +0000
committerLinus Groh <mail@linusgroh.de>2022-12-07 16:43:06 +0000
commit5db38d7ba1a8caa5138dd65cc06be0c0e5a568e4 (patch)
tree6968f34445aceedd484c1b71eef06e7914d5e6c6 /Userland/Libraries/LibJS/Runtime/Array.cpp
parent07f1aad3dd81dfbd047f34b32bc82a49e07f79e5 (diff)
downloadserenity-5db38d7ba1a8caa5138dd65cc06be0c0e5a568e4.zip
LibJS: Replace standalone js_bigint() with BigInt::create()
Three standalone Cell creation functions remain in the JS namespace: - js_bigint() - js_string() - js_symbol() All of them are leftovers from early iterations when LibJS still took inspiration from JSC, which itself has jsString(). Nowadays, we pretty much exclusively use static create() functions to construct types allocated on the JS heap, and there's no reason to not do the same for these. Also change the return type from BigInt* to NonnullGCPtr<BigInt> while we're here. This is patch 1/3, replacement of js_string() and js_symbol() follow.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Array.cpp')
0 files changed, 0 insertions, 0 deletions