mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
LibJS: Implement the "instanceof" operator
This operator walks the prototype chain of the RHS value and looks for a "prototype" property with the same value as the prototype of the LHS. This is pretty cool. :^)
This commit is contained in:
parent
37fe16a99c
commit
a3d92b1210
6 changed files with 41 additions and 1 deletions
|
@ -189,6 +189,7 @@ Value mul(Value lhs, Value rhs);
|
|||
Value div(Value lhs, Value rhs);
|
||||
Value eq(Value lhs, Value rhs);
|
||||
Value typed_eq(Value lhs, Value rhs);
|
||||
Value instance_of(Value lhs, Value rhs);
|
||||
|
||||
const LogStream& operator<<(const LogStream&, const Value&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue