Browse Source

fix(runtime-core): use normal object as internal prototype for attrs and slots

to allow use of hasOwnProperty()
ref 6df53d85a2 (r141304923)
pull/10786/head
Evan You 1 year ago
parent
commit
064e82f585
No known key found for this signature in database GPG Key ID: B9D421896CA450FB
  1. 2
      packages/runtime-core/src/internalObject.ts

2
packages/runtime-core/src/internalObject.ts

@ -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)

Loading…
Cancel
Save