1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 23:24:57 +00:00
serenity/Userland/Libraries/LibJS/Tests/exception-ReferenceError.js
2021-01-12 12:17:46 +01:00

3 lines
120 B
JavaScript

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