Bug 1155081 - Part 2: Replace ThrowError with ThrowTypeError in Error.js. r=till

This commit is contained in:
Tooru Fujisawa 2015-04-20 13:58:16 +09:00
parent 83bb491719
commit e1a230ef1a

View File

@ -8,7 +8,7 @@ function ErrorToString()
/* Steps 1-2. */
var obj = this;
if (!IsObject(obj))
ThrowError(JSMSG_INCOMPATIBLE_PROTO, "Error", "toString", "value");
ThrowTypeError(JSMSG_INCOMPATIBLE_PROTO, "Error", "toString", "value");
/* Steps 3-5. */
var name = obj.name;