| Index: test/mjsunit/es6/generators-objects.js
|
| diff --git a/test/mjsunit/es6/generators-objects.js b/test/mjsunit/es6/generators-objects.js
|
| index 3adeca43dcf9947cbad0c341cd15ac3a41a1f859..9a075184a2bc6e4ca21c8f7559963acd7c03c8cf 100644
|
| --- a/test/mjsunit/es6/generators-objects.js
|
| +++ b/test/mjsunit/es6/generators-objects.js
|
| @@ -113,3 +113,17 @@ function TestPrototype() {
|
| assertSame(generator_prototype, Object.getPrototypeOf(g()));
|
| }
|
| TestPrototype();
|
| +
|
| +
|
| +function TestComputedPropertyNames() {
|
| + function* f1() { return {[yield]: 42} }
|
| + var g1 = f1();
|
| + g1.next();
|
| + assertEquals(42, g1.next('a').value.a);
|
| +
|
| + function* f2() { return {['a']: yield} }
|
| + var g2 = f2();
|
| + g2.next();
|
| + assertEquals(42, g2.next(42).value.a);
|
| +}
|
| +TestComputedPropertyNames();
|
|
|