1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-12 20:27:30 +08:00

Merge pull request #172 from dop251/remove-redundant-rangeerror-prefixes-fix-tests

Fixed tests to match the updated error messages.
This commit is contained in:
Steven Hartland 2016-04-05 23:39:28 +01:00
commit c619b8fa10

View File

@ -34,11 +34,11 @@ func TestNumber_toString(t *testing.T) {
test(`raise:
new Number(451).toString(1);
`, "RangeError: RangeError: toString() radix must be between 2 and 36")
`, "RangeError: toString() radix must be between 2 and 36")
test(`raise:
new Number(451).toString(Infinity);
`, "RangeError: RangeError: toString() radix must be between 2 and 36")
`, "RangeError: toString() radix must be between 2 and 36")
test(`
new Number(NaN).toString()