mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Created these while experimenting with LibJS. Might as well bring them into the tree and increase our coverage.
13 lines
244 B
JavaScript
13 lines
244 B
JavaScript
// Test that try/catch where all paths are terminated (return/throw)
|
|
// does not emit a spurious End instruction after the try body.
|
|
|
|
function try_return() {
|
|
try {
|
|
throw 1;
|
|
} catch (e) {
|
|
return e;
|
|
}
|
|
}
|
|
|
|
try_return();
|