This website requires JavaScript.
Explore
Help
Sign in
Stowage
/
ladybird
Watch
2
Star
0
Fork
You've already forked ladybird
0
mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced
2025-11-03 23:00:58 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
78155a6668
ladybird
/
Libraries
/
LibJS
/
Tests
/
Math.sqrt.js
8 lines
100 B
JavaScript
Raw
Normal View
History
Unescape
Escape
js/LibJS: Move test functions to pure javascript. The addition of assert functions to Userland/js was done before we had load(..) implemented. Now that it exists, it seems like the right move the test helper functions to pure javascript instead of poluting js with random global functions.
2020-04-13 10:31:13 -07:00
load
(
"test-common.js"
)
;
LibJS: Add Math.sqrt()
2020-04-04 22:44:48 +02:00
try
{
assert
(
Math
.
sqrt
(
9
)
===
3
)
;
console
.
log
(
"PASS"
)
;
}
catch
{
}
Reference in a new issue
Copy permalink