mirror of https://github.com/vuejs/core.git
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:
parent
4253a57f17
commit
064e82f585
|
@ -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…
Reference in New Issue