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