and a few tests. git-svn-id: svn://10.0.0.236/trunk@246950 18797224-902f-48f8-a5cc-f745e15eee43
16 lines
342 B
Plaintext
16 lines
342 B
Plaintext
// Fix bug reported in newsgroup:
|
|
// Tail call optimization was interfering with catching exceptions.
|
|
// The following program should print 7, but was resulting in an uncaught
|
|
// exception.
|
|
js> function g() {
|
|
> throw 3;
|
|
> }
|
|
js> function f() {
|
|
> try {
|
|
> return g();
|
|
> } catch (e) {
|
|
> return 7;
|
|
> }
|
|
> }
|
|
js> f()
|
|
7 |