Change Debug.prototype.uncaughtExceptionHook to require a function or null, and pass the Debug object to uncaughtExceptionHook as the this-value.

This commit is contained in:
Jason Orendorff
2011-04-20 14:45:14 -05:00
parent e7b3a25ca4
commit bd790c83f7
5 changed files with 32 additions and 3 deletions

View File

@@ -351,3 +351,4 @@ MSG_DEF(JSMSG_INVALID_FOR_IN_INIT, 268, 0, JSEXN_SYNTAXERR, "for-in loop let
MSG_DEF(JSMSG_CLEARED_SCOPE, 269, 0, JSEXN_TYPEERR, "attempt to run compile-and-go script on a cleared scope")
MSG_DEF(JSMSG_CCW_REQUIRED, 270, 1, JSEXN_TYPEERR, "{0}: argument must be an object from a different compartment")
MSG_DEF(JSMSG_DEBUG_BAD_RESUMPTION, 271, 0, JSEXN_TYPEERR, "debugger resumption value must be undefined, {throw: val}, {return: val}, or null")
MSG_DEF(JSMSG_ASSIGN_FUNCTION_OR_NULL, 272, 1, JSEXN_TYPEERR, "value assigned to {0} must be a function or null")