ladybird/Userland/Libraries/LibJS/Tests/exception-ReferenceError.js
2021-01-12 12:17:46 +01:00

4 lines
120 B
JavaScript

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