You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The prototypes for String, Number and Boolean should be respectively String(""), Number(0) and Boolean(false).
To Reproduce
This JavaScript code reproduces the issue:
>>String.prototype.toString()
Uncaught: "TypeError": "'this' is not a string">>Number.prototype.toString()
Uncaught: "TypeError": "'this' is not a number">>Boolean.prototype.toString()
Uncaught: "TypeError": "'this' is not a boolean"
Describe the bug
The prototypes for
String
,Number
andBoolean
should be respectivelyString("")
,Number(0)
andBoolean(false)
.To Reproduce
This JavaScript code reproduces the issue:
Expected behavior
Build environment
Additional context
String prototype specification
Number prototype specification
Boolean prototype specification
The text was updated successfully, but these errors were encountered: