1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibJS: Add Math.sqrt()

This commit is contained in:
Andreas Kling 2020-04-04 22:44:48 +02:00
parent d155491122
commit d4dfe7e525
3 changed files with 23 additions and 3 deletions

View file

@ -0,0 +1,7 @@
function assert(x) { if (!x) throw 1; }
try {
assert(Math.sqrt(9) === 3);
console.log("PASS");
} catch {
}