mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibJS: BigInts and Symbols values are cells and the GC needs this info
Make Value::is_cell() return true for BigInts and Symbols. This makes all the tests pass when running run-tests.sh -g (GC after every alloc.)
This commit is contained in:
parent
4e33fbdb67
commit
10aebabf0b
Notes:
sideshowbarker
2024-07-19 05:45:14 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/10aebabf0bd
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ public:
|
||||||
bool is_symbol() const { return m_type == Type::Symbol; }
|
bool is_symbol() const { return m_type == Type::Symbol; }
|
||||||
bool is_accessor() const { return m_type == Type::Accessor; };
|
bool is_accessor() const { return m_type == Type::Accessor; };
|
||||||
bool is_bigint() const { return m_type == Type::BigInt; };
|
bool is_bigint() const { return m_type == Type::BigInt; };
|
||||||
bool is_cell() const { return is_string() || is_accessor() || is_object(); }
|
bool is_cell() const { return is_string() || is_accessor() || is_object() || is_bigint() || is_symbol(); }
|
||||||
bool is_array() const;
|
bool is_array() const;
|
||||||
bool is_function() const;
|
bool is_function() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue