Index: test/mjsunit/harmony/symbols.js |
diff --git a/test/mjsunit/harmony/symbols.js b/test/mjsunit/harmony/symbols.js |
index a3f6e57208874274a435d336b23223dce615534c..5eaa1a37d8c4efdfc678d90e4bda06230cc4b093 100644 |
--- a/test/mjsunit/harmony/symbols.js |
+++ b/test/mjsunit/harmony/symbols.js |
@@ -82,6 +82,23 @@ function TestPrototype() { |
TestPrototype() |
+function TestConstructor() { |
+ assertFalse(Object === Symbol.prototype.constructor) |
+ assertFalse(Symbol === Object.prototype.constructor) |
+ assertSame(Symbol, Symbol.prototype.constructor) |
+ assertSame(Symbol, Symbol().__proto__.constructor) |
+ assertSame(Symbol, Symbol(Symbol()).__proto__.constructor) |
+ assertSame(Symbol, (new Symbol).__proto__.constructor) |
+ assertSame(Symbol, (new Symbol()).__proto__.constructor) |
+ assertSame(Symbol, (new Symbol(Symbol())).__proto__.constructor) |
+ assertSame(Symbol, Object(Symbol()).__proto__.constructor) |
+ for (var i in symbols) { |
+ assertSame(Symbol, symbols[i].__proto__.constructor) |
+ } |
+} |
+TestConstructor() |
+ |
+ |
function TestName() { |
for (var i in symbols) { |
var name = symbols[i].name |