| Index: test/mjsunit/es6/object-literals-method.js
|
| diff --git a/test/mjsunit/es6/object-literals-method.js b/test/mjsunit/es6/object-literals-method.js
|
| index e4527cb776b569b33dcecbc9907bf23d1861ac90..90bc51ec03d55f352775a9a9728a7a48e31080ff 100644
|
| --- a/test/mjsunit/es6/object-literals-method.js
|
| +++ b/test/mjsunit/es6/object-literals-method.js
|
| @@ -239,16 +239,14 @@ function assertIteratorResult(value, done, result) {
|
| })();
|
|
|
|
|
| -(function TestGeneratorConstructable() {
|
| +(function TestGeneratorNotConstructable() {
|
| var object = {
|
| *method() {
|
| yield 1;
|
| }
|
| };
|
|
|
| - var g = new object.method();
|
| - assertIteratorResult(1, false, g.next());
|
| - assertIteratorResult(undefined, true, g.next());
|
| + assertThrows(()=>new object.method());
|
| })();
|
|
|
|
|
|
|