Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug on overriding nested property of a non-configurable property #12

Closed
theseanl opened this issue Apr 15, 2018 · 0 comments · Fixed by #13
Closed

A bug on overriding nested property of a non-configurable property #12

theseanl opened this issue Apr 15, 2018 · 0 comments · Fixed by #13
Labels

Comments

@theseanl
Copy link
Contributor

theseanl commented Apr 15, 2018

Steps to reproduce:

var base = {};

Object.defineProperty(base, 'a', {
    value: {},
    writable: true,
    enumerable: true,
    configurable: false
});

AG_defineProperty('a.b', { value: 1 }, base);
AG_defineProperty('a.c.d', { value: 2 }, base);

base.a.c = {};

console.log(base.a.c.d);

Expected:

2

Actual:

undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant