Sign in
webkit
/
WebKit
/
7d815df5a5eb5a0a67d72260d5639681d50d7f66
/
.
/
JSTests
/
stress
/
misc-is-object-or-null.js
blob: e8968e545dc65c39e3e4f6c31f21ae951738ba8b [
file
] [
log
] [
blame
]
function
foo
(
p
)
{
var
x
=
p
?
null
:
false
;
return
(
typeof
x
)
==
"object"
;
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
10000
;
++
i
)
{
var
p
=
!!(
i
&
1
);
var
result
=
foo
(
p
);
if
(
result
!==
p
)
throw
"Error: bad result for p = "
+
p
+
": "
+
result
;
}