mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(ext): Add checks for owning properties in for-in loops (#17139)
In the for-in loops, there were a few places where we forgot to check if objects owned some properties, so I added them.
This commit is contained in:
parent
4258e06f87
commit
156fef9cea
3 changed files with 11 additions and 1 deletions
|
@ -1013,6 +1013,9 @@
|
|||
function configurePrototype(prototype) {
|
||||
const descriptors = ObjectGetOwnPropertyDescriptors(prototype.prototype);
|
||||
for (const key in descriptors) {
|
||||
if (!ObjectPrototypeHasOwnProperty(descriptors, key)) {
|
||||
continue;
|
||||
}
|
||||
if (key === "constructor") continue;
|
||||
const descriptor = descriptors[key];
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue