Skip to content

Commit

Permalink
fix(runtime-core): use normal object as internal prototype for attrs …
Browse files Browse the repository at this point in the history
…and slots

to allow use of hasOwnProperty()
ref 6df53d8#r141304923
  • Loading branch information
yyx990803 committed Apr 24, 2024
1 parent 4253a57 commit 064e82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/internalObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* `Object.getPrototypeOf`. This is more performant than defining a
* non-enumerable property. (one of the optimizations done for ssr-benchmark)
*/
const internalObjectProto = Object.create(null)
const internalObjectProto = {}

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

Expand Down

0 comments on commit 064e82f

Please sign in to comment.