mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1155081 - Part 2: Replace ThrowError with ThrowTypeError in Error.js. r=till
This commit is contained in:
parent
83bb491719
commit
e1a230ef1a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user