1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 23:34:59 +00:00
serenity/Libraries/LibJS/Tests/exception-ReferenceError.js
2020-07-06 23:40:35 +02:00

3 lines
120 B
JavaScript

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