mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
262 B
20 lines
262 B
/*
|
|
* A simple zero sign behavior test.
|
|
*
|
|
* Comprehensive tests of zero sign behavior belong in e.g. arithmetic
|
|
* operation tests.
|
|
*/
|
|
|
|
/*===
|
|
Infinity number
|
|
-Infinity number
|
|
===*/
|
|
|
|
var t;
|
|
|
|
t = 1 / +0;
|
|
print(t, typeof t);
|
|
|
|
t = 1 / -0;
|
|
print(t, typeof t);
|
|
|
|
|