mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
LibJS: Implement exponentiation assignment operator (**=)
This commit is contained in:
parent
3e754a15d4
commit
a2e1f1a872
8 changed files with 23 additions and 5 deletions
|
@ -23,6 +23,10 @@ try {
|
|||
assert((x /= 2) === 3);
|
||||
assert(x === 3);
|
||||
|
||||
x = 2;
|
||||
assert((x **= 3) === 8);
|
||||
assert(x === 8);
|
||||
|
||||
x = 3;
|
||||
assert((x &= 2) === 2);
|
||||
assert(x === 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue