Files
ladybird/Tests/LibJS/Runtime/exception-ReferenceError.js
2026-01-22 07:46:48 -05:00

4 lines
120 B
JavaScript

test("unknown variable produces ReferenceError", () => {
expect(new Function("i < 3")).toThrow(ReferenceError);
});