mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 18:25:06 +00:00
LibJS: Loosen type system
This commits makes effort towards tolerating some of javascript's quirks when it comes to its type system, note that the interpreter's way of handling type coercion is still not mature at all, for example, we still have to implement NaN instead of just crashing when trying to parse a string and failing.
This commit is contained in:
parent
419d57e492
commit
4d22a142f7
9 changed files with 109 additions and 55 deletions
|
@ -40,7 +40,7 @@ void Cell::Visitor::visit(Value value)
|
|||
visit(value.as_cell());
|
||||
}
|
||||
|
||||
Heap& Cell::heap()
|
||||
Heap& Cell::heap() const
|
||||
{
|
||||
return HeapBlock::from_cell(this)->heap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue