| Index: test/mjsunit/harmony/private.js
|
| diff --git a/test/mjsunit/harmony/private.js b/test/mjsunit/harmony/private.js
|
| index 4b29fd863ed385e35533365646f6bd08d6608e84..218094c3d50632fb21f2c97e9403fdde883cd681 100644
|
| --- a/test/mjsunit/harmony/private.js
|
| +++ b/test/mjsunit/harmony/private.js
|
| @@ -83,7 +83,8 @@ TestConstructor()
|
|
|
| function TestToString() {
|
| for (var i in symbols) {
|
| - assertThrows(function() { String(symbols[i]) }, TypeError)
|
| + assertThrows(function() {new String(symbols[i]) }, TypeError)
|
| + assertEquals(symbols[i].toString(), String(symbols[i]))
|
| assertThrows(function() { symbols[i] + "" }, TypeError)
|
| assertTrue(isValidSymbolString(symbols[i].toString()))
|
| assertTrue(isValidSymbolString(Object(symbols[i]).toString()))
|
|
|