Hi every one. I found next problem:
let notWork = {
prop1: {
[prop2]: 'value'
}
};
is equal to:
on the other hand this construction:
let workFine = {
['prop1']: {
['prop2']: 'value'
}
};
work fine:
{ prop1: { prop2: 'value' } };
I didn't find any descriptions for complex object in specification.
Can I initialize objects like in first example or this is a bug ?
Hi every one. I found next problem:
is equal to:
on the other hand this construction:
work fine:
I didn't find any descriptions for complex object in specification.
Can I initialize objects like in first example or this is a bug ?