Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,35 @@
|
|||
function U() {}
|
||||
U.prototype.toString = function(){return this.className;}
|
||||
|
||||
function U0() {
|
||||
this.className = arguments.callee.name;
|
||||
}
|
||||
U0.prototype = new U();
|
||||
|
||||
function U1() {
|
||||
this.className = arguments.callee.name;
|
||||
}
|
||||
U1.prototype = new U();
|
||||
|
||||
function foo() {
|
||||
for (var i = 1; i <= 2; i++) {
|
||||
try {
|
||||
bar();
|
||||
}
|
||||
catch(e if e instanceof U0) {
|
||||
print("caught exception " + e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function bar() {
|
||||
baz();
|
||||
}
|
||||
|
||||
function baz() {
|
||||
// during the first call, redefine the function for subsequent calls
|
||||
baz = function() {throw(new U1());}
|
||||
throw(new U0());
|
||||
}
|
||||
|
||||
foo();
|
||||
Loading…
Add table
Add a link
Reference in a new issue