18 lines
367 B
JavaScript
18 lines
367 B
JavaScript
description(
|
|
"This test checks that unwinding of exceptions properly copies registers of activation frames created by reentrant calls to JavaScript."
|
|
);
|
|
|
|
var f;
|
|
|
|
try {
|
|
(function() {
|
|
var j = 0;
|
|
f = function() { return j; };
|
|
throw new Object();
|
|
}).apply();
|
|
} catch (e) {
|
|
(function() {
|
|
shouldBe("f()", "0");
|
|
}).apply();
|
|
}
|