Skip to content

Commit 064e82f

Browse files
committed
fix(runtime-core): use normal object as internal prototype for attrs and slots
to allow use of hasOwnProperty() ref 6df53d8#r141304923
1 parent 4253a57 commit 064e82f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/runtime-core/src/internalObject.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* `Object.getPrototypeOf`. This is more performant than defining a
55
* non-enumerable property. (one of the optimizations done for ssr-benchmark)
66
*/
7-
const internalObjectProto = Object.create(null)
7+
const internalObjectProto = {}
88

99
export const createInternalObject = () => Object.create(internalObjectProto)
1010

0 commit comments

Comments
 (0)