Skip to content

that shallowReadonly proxy of Map call get will return a proxy #3007

@lijingfaatcumt

Description

@lijingfaatcumt

Version

3.0.5

Reproduction link

https://jsfiddle.net/57no3akz/9/

Steps to reproduce

const {shallowReadonly, isProxy} = Vue

let origin = new Map([[1, {a: 1}]])

let proxy = shallowReadonly(origin)

console.log(isProxy(proxy.get(1)))

What is expected?

return the origin object

What is actually happening?

return the proxy of the origin object

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workingscope: reactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions