Files
ladybird/Libraries/LibJS/Tests/exception-ReferenceError.js
2024-11-10 12:50:45 +01:00

4 lines
120 B
JavaScript

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