1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00
ladybird/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);
});