| Index: test/mjsunit/es6/computed-property-names.js
|
| diff --git a/test/mjsunit/es6/computed-property-names.js b/test/mjsunit/es6/computed-property-names.js
|
| index 80a047cc9cd3491aca0d9d9bacd390329e08606a..8c1aeb52af756480042ac174055f4f2c4f9a1caa 100644
|
| --- a/test/mjsunit/es6/computed-property-names.js
|
| +++ b/test/mjsunit/es6/computed-property-names.js
|
| @@ -298,3 +298,14 @@ function ID(x) {
|
| };
|
| }, MyError);
|
| })();
|
| +
|
| +
|
| +(function TestNestedLiteral() {
|
| + var key = "test";
|
| + for (var i = 0; i < 10; ++i) {
|
| + assertEquals(i, ({ a: { [key + i]: i } }).a[key + i]);
|
| + assertEquals(i, ({ a: { b: { [key + i]: i } } }).a.b[key + i]);
|
| + assertEquals(i, ([ { [key + i]: i } ])[0][key + i]);
|
| + assertEquals(i, ([ { b: { [key + i]: i } } ])[0].b[key + i]);
|
| + }
|
| +})();
|
|
|