mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 12:05:00 +00:00
10 lines
256 B
JavaScript
10 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);
|
|
});
|