-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
Hi every one. I found next problem:
let notWork = {
prop1: {
[prop2]: 'value'
}
};
is equal to:
{ prop1: {} }
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 ?
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.