Sign in
webkit
/
WebKit
/
7d815df5a5eb5a0a67d72260d5639681d50d7f66
/
.
/
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"
);
}