Files
ladybird/Tests/LibJS/Runtime/builtins/JSON/JSON.stringify-exception-in-property-getter.js
2026-01-22 07:46:48 -05:00

11 lines
256 B
JavaScript

test("Issue #3548, exception in property getter with replacer function", () => {
const o = {
get foo() {
throw Error();
},
};
expect(() => {
JSON.stringify(o, (_, value) => value);
}).toThrow(Error);
});