diff --git a/js/src/jscntxt.cpp b/js/src/jscntxt.cpp index 6715a548a20..e4fc1b8553f 100644 --- a/js/src/jscntxt.cpp +++ b/js/src/jscntxt.cpp @@ -2033,9 +2033,8 @@ error: /* * Since this function is only called in the context of a pending exception, - * the caller must subsequently take an error path. If wrapping fails, we leave - * the exception cleared, which, in the context of an error path, will be - * interpreted as an uncatchable exception. + * the caller must subsequently take an error path. If wrapping fails, it will + * set a new (uncatchable) exception to be used in place of the original. */ void JSContext::wrapPendingException()