mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
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:
parent
3fdacef07f
commit
3ee6ed965f
5 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue