Skip to content

Commit 1bc3ab8

Browse files
authored
Use static Object.hasOwn
I think the initial change in 90db9c5 meant to use the static hasOwn but instead is calling on the object itself.
1 parent 058036f commit 1bc3ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/wasm/runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
new: (c, args) => new c(...args),
158158
global_this: globalThis,
159159
iter_props: (o, f) => {
160-
for (var nm in o) if (o.hasOwn(nm)) f(nm);
160+
for (var nm in o) if (Object.hasOwn(o, nm)) f(nm);
161161
},
162162
array_length: (a) => a.length,
163163
array_get: (a, i) => a[i],

0 commit comments

Comments
 (0)