mirror of https://github.com/tc39/test262.git
13 lines
227 B
JavaScript
13 lines
227 B
JavaScript
|
//@ runDefault
|
||
|
// This test should not crash.
|
||
|
|
||
|
Error.prototype.name = 0
|
||
|
Error().toString();
|
||
|
Error("1").toString();
|
||
|
Error(0).toString();
|
||
|
|
||
|
Error.prototype.name = ""
|
||
|
Error().toString();
|
||
|
Error("1").toString();
|
||
|
Error(0).toString();
|