class MyString extends String { }
function MyString() { }
MyString.prototype = Object.create(String.prototype)
Unhandled Error: String.prototype.toString: this is not a String object
String.prototype.toString = function() {
if (typeof this === 'string')
return this.valueOf();
else
throw new TypeError();
};