зеркало из https://github.com/mozilla/gecko-dev.git
Add passing tests for bug 934789, which was fixed by backing out bug 933798 in rev 175bebe48034. Thanks to luke for test cases. no_r=testonly.
This commit is contained in:
Родитель
669a2906e4
Коммит
587777116a
|
@ -0,0 +1,13 @@
|
|||
if (typeof dis === "function") {
|
||||
(function() {
|
||||
function foo() {}
|
||||
|
||||
dis(function bar(e) {
|
||||
try {
|
||||
(function() { e; });
|
||||
} catch (e) {
|
||||
foo();
|
||||
}
|
||||
});
|
||||
}());
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
load(libdir + "asserts.js");
|
||||
assertThrowsInstanceOf(
|
||||
function() {
|
||||
function foo() {}
|
||||
foo = null;
|
||||
(function bar(e) {
|
||||
try {
|
||||
(function() { e; });
|
||||
throw 1;
|
||||
} catch (e) {
|
||||
foo();
|
||||
}
|
||||
})();
|
||||
},
|
||||
TypeError);
|
Загрузка…
Ссылка в новой задаче