mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 18:23:39 +00:00
Libraries: Move to Userland/Libraries/
This commit is contained in:
parent
dc28c07fa5
commit
13d7c09125
Notes:
sideshowbarker
2024-07-18 23:53:55 +09:00
Author: https://github.com/awesomekling
Commit: 13d7c09125
1857 changed files with 266 additions and 274 deletions
|
@ -1,25 +0,0 @@
|
|||
test("Issue #3437, exception thrown in catch {} block", () => {
|
||||
var tryHasBeenExecuted = false;
|
||||
var catchHasBeenExecuted = false;
|
||||
var finallyHasBeenExecuted = false;
|
||||
expect(() => {
|
||||
try {
|
||||
tryHasBeenExecuted = true;
|
||||
foo();
|
||||
// execution must not reach this step
|
||||
expect().fail();
|
||||
} catch (e) {
|
||||
catchHasBeenExecuted = true;
|
||||
bar();
|
||||
// ...also not this step
|
||||
expect().fail();
|
||||
} finally {
|
||||
finallyHasBeenExecuted = true;
|
||||
}
|
||||
// ...or this step
|
||||
expect().fail();
|
||||
}).toThrow(ReferenceError, "'bar' is not defined");
|
||||
expect(tryHasBeenExecuted).toBeTrue();
|
||||
expect(catchHasBeenExecuted).toBeTrue();
|
||||
expect(finallyHasBeenExecuted).toBeTrue();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue