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