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

to allow use of hasOwnProperty()
ref 6df53d85a2 (r141304923)
This commit is contained in:
Evan You 2024-04-24 18:28:49 +08:00
parent 4253a57f17
commit 064e82f585
No known key found for this signature in database
GPG Key ID: B9D421896CA450FB
1 changed files with 1 additions and 1 deletions

View File

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