mirror of https://github.com/svaarala/duktape.git
Browse Source
Fix Symbol object .valueOf() which returned Symbol object instead of plain Symbolpull/1462/head
Sami Vaarala
8 years ago
committed by
GitHub
3 changed files with 18 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||
/*=== |
|||
symbol |
|||
object |
|||
symbol |
|||
true |
|||
===*/ |
|||
|
|||
var symbol = Symbol('foo'); |
|||
print(typeof symbol); |
|||
var object = Object(symbol); |
|||
print(typeof object); |
|||
var value = object.valueOf(); |
|||
print(typeof value); |
|||
print(symbol === value); |
Loading…
Reference in new issue