mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
LibJS: Implement unary plus / minus
This commit is contained in:
parent
5e6e1fd482
commit
a62230770b
9 changed files with 73 additions and 25 deletions
|
@ -8,6 +8,8 @@ try {
|
|||
assert(!o.a === false);
|
||||
assert(!o.a === !(o.a));
|
||||
assert(~o.a === ~(o.a));
|
||||
assert(+o.a === +(o.a));
|
||||
assert(-o.a === -(o.a));
|
||||
|
||||
assert((typeof "x" === "string") === true);
|
||||
assert(!(typeof "x" === "string") === false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue