Sign in
webkit
/
WebKit
/
5969b6f1f74632b1546edb27bd956b187c2c3d52
/
.
/
LayoutTests
/
js
/
script-tests
/
mod-by-zero.js
blob: d86415e80b9a79de02f3c26d9c8dfbf8eb3000eb [
file
] [
log
] [
blame
]
description
(
"This tests that modulo with zero does not crash but returns NaN."
);
function
mod
(
b
)
{
return
b
%
b
;
}
shouldBeNaN
(
"mod(0)"
);