summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/exception-ReferenceError.js
blob: 5cd436d0bf2251775a341f58f7a3ab6af8a0c9ba (plain)
1
2
3
test("unknown variable produces ReferenceError", () => {
    expect(new Function("i < 3")).toThrow(ReferenceError);
});