Open
Description
While writing tests for #283 there were failures caused by new String("foo")
return value being a string.
The correct return is a String
object:
var o = new String('foo');
var s = 'foo';
console.log(typeof o === 'object');
console.log(o instanceof String);
console.log(typeof s === 'string');
console.log((s instanceof String) === false);
The expected result is true
for all of the above, the actual results are:
false
true
true
false