Sign in
webkit
/
WebKit
/
e1a82001cfdab62c438e943f37ce20f74c8e0820
/
.
/
JSTests
/
microbenchmarks
/
is-symbol.js
blob: 213b5a34c44cb9c8db4f03e16f3274d80bf98a9a [
file
] [
log
] [
blame
]
function
isSymbol
(
value
)
{
return
typeof
value
===
'symbol'
;
}
noInline
(
isSymbol
);
for
(
var
i
=
0
;
i
<
1e4
;
++
i
)
{
if
(!
isSymbol
(
Symbol
(
'Cocoa'
)))
throw
new
Error
(
"out"
);
}