LibJS: Use allocate_without_global_object for primitive cell types

More steps towards multiple global object support. Primitive cells
like strings, bigints, etc, don't actually have any connection to
the global object. Use the explicit API to clarify this.
This commit is contained in:
Andreas Kling 2020-07-24 20:46:55 +02:00
commit 3ee6ed965f
Notes: sideshowbarker 2024-07-19 04:38:02 +09:00
5 changed files with 8 additions and 8 deletions

View file

@ -42,7 +42,7 @@ BigInt::~BigInt()
BigInt* js_bigint(Heap& heap, Crypto::SignedBigInteger big_integer)
{
return heap.allocate<BigInt>(heap.interpreter().global_object(), move(big_integer));
return heap.allocate_without_global_object<BigInt>(move(big_integer));
}
BigInt* js_bigint(Interpreter& interpreter, Crypto::SignedBigInteger big_integer)