diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-06 22:03:52 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-07 16:43:06 +0000 |
commit | 5db38d7ba1a8caa5138dd65cc06be0c0e5a568e4 (patch) | |
tree | 6968f34445aceedd484c1b71eef06e7914d5e6c6 /Userland/Libraries/LibJS/Runtime/Array.cpp | |
parent | 07f1aad3dd81dfbd047f34b32bc82a49e07f79e5 (diff) | |
download | serenity-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