ladybird/Libraries/LibJS/Tests/exception-ReferenceError.js

3 lines
120 B
JavaScript

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