Closed
Bug 56727
Opened 24 years ago
Closed 24 years ago
CheckFinalReturn is not exception-savvy
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
People
(Reporter: shaver, Assigned: shaver)
References
()
Details
<brendan> (ahem; exception-adding spidermonkeys forgot about my CheckFinalReturn
functions!)
So I (we?) did. I shall repair it with the following one-liner, if the JS gods
so permit:
Index: jsparse.c
===================================================================
RCS file: /cvsroot/mozilla/js/src/jsparse.c,v
retrieving revision 3.44
diff -u -r3.44 jsparse.c
--- jsparse.c 2000/09/12 19:42:01 3.44
+++ jsparse.c 2000/10/15 15:46:32
@@ -315,6 +315,7 @@
case TOK_WITH:
return CheckFinalReturn(pn->pn_right);
case TOK_RETURN:
+ case TOK_THROW:
return JS_TRUE;
default:
return JS_FALSE;
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•24 years ago
|
||
Blah. 49233 has discussion of this (I missed it in my search for an existing
bug, because its summary gives no hint), and a better solution.
It feels wrong to dup this to a bug about eval, but I'll live.
*** This bug has been marked as a duplicate of 49233 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•