test262/implementation-contributed/javascriptcore/stress/errors-with-simple-names-or-messages-should-not-crash-toString.js
Leo Balter d1261bb49d Update files for the curation process
Remove more stress tests with existing coverage or out of context for test262
2018-09-11 18:20:20 -04:00

14 lines
239 B
JavaScript

// Reviewed
//@ 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();