mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 09:11:53 +00:00
It can fail if we're talking to a badly-behaved proxy when enumerating object properties for iteration.
12 lines
279 B
JavaScript
12 lines
279 B
JavaScript
test("iterate over bogus proxy", () => {
|
|
expect(() => {
|
|
let proxy = new Proxy([123], {
|
|
getOwnPropertyDescriptor: function (p) {
|
|
return undefined;
|
|
},
|
|
});
|
|
|
|
for (const p in proxy) {
|
|
}
|
|
}).toThrow();
|
|
});
|