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