mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibJS: Add basic support for modulo (%) in binary expressions
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 07:56:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/644ff1bbfd5
8
Libraries/LibJS/Tests/modulo-basic.js
Normal file
8
Libraries/LibJS/Tests/modulo-basic.js
Normal file
@@ -0,0 +1,8 @@
|
||||
function assert(x) { if (!x) throw 1; }
|
||||
|
||||
try {
|
||||
assert(10 % 3 === 1);
|
||||
console.log("PASS");
|
||||
} catch (e) {
|
||||
console.log("FAIL: " + e);
|
||||
}
|
||||
Reference in New Issue
Block a user