Lines Matching defs:toString
25 * NASHORN-226 : Error.prototype.toString does not confirm to spec.
32 if (e.toString() !== "Error") {
33 fail("#1 expected 'Error', got " + e.toString());
37 if (e.toString() !== "Error") {
38 fail("#2 expected 'Error', got " + e.toString());
41 e.message = { toString: function() { return '' } };
42 if (e.toString() !== "Error") {
43 fail("#3 expected 'Error', got " + e.toString());
48 if (e.toString() !== "MyError") {
49 fail("#4 expected 'MyError', got " + e.toString());