LibJS: Implement modulo assignment operator (%=)

This commit is contained in:
Linus Groh 2020-05-04 23:07:05 +01:00 committed by Andreas Kling
commit 72d2bd56ce
Notes: sideshowbarker 2024-07-19 06:57:53 +09:00
4 changed files with 18 additions and 0 deletions

View file

@ -23,6 +23,10 @@ try {
assert((x /= 2) === 3);
assert(x === 3);
x = 6;
assert((x %= 4) === 2);
assert(x === 2);
x = 2;
assert((x **= 3) === 8);
assert(x === 8);