Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testDoubleZeroInSwitch1.js
blob: 2b147aaf27b96f93084d023672620fc3e4117df6 [
file
] [
log
] [
blame
]
var
a
=
Math
.
sin
(
Math
.
PI
/
2
);
// spec does not specify precise answer here...
if
(
a
===
1
)
{
// ...but if a === 1 here...
switch
(
a
)
{
case
1
:
break
;
// ...then it must also match here
default
:
throw
"FAIL"
;
}
}