The string representation of Error objects having their 'name' property set to the empty string is incorrect according to the ES5.1 spec. The built-in toString() method should just return the 'message' property for these cases. This is tested by a Test262 test case (i.e. 15.11.4.4-8-1) and can also be reproduced with the following JavaScript snippet. function test() { var err = new Error("The description message"); err.name = ""; return err.toString() === "The description message"; }
Created attachment 112640 [details] Fix, needs testing, test case, Changelog.
(ooops, ignore the config change!)
Created attachment 115213 [details] Fix
Fixed in r100310