mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-06 08:10:58 +00:00
13 lines
279 B
JavaScript
13 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();
|
||
|
|
});
|