mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
11 lines
186 B
JavaScript
11 lines
186 B
JavaScript
// Test should fail if thrown exception is not caught
|
|
process.exitCode = 1;
|
|
|
|
try {
|
|
import("./t3.mjs");
|
|
require("./t3.mjs");
|
|
} catch (e) {
|
|
console.log(e);
|
|
process.exitCode = 0;
|
|
}
|