Sign in
webkit
/
WebKit
/
5c46bef7ab98d4e8242fd1cdbd4a8339e4d4801f
/
.
/
JSTests
/
stress
/
other-is-object-or-null.js
blob: 81c0b0ae965ef62f61c15e1fd7c8d2b756e18e35 [
file
] [
log
] [
blame
]
function
foo
(
p
)
{
var
x
=
p
?
null
:
void
0
;
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
;
}