Index: test/mjsunit/harmony/function-sent.js |
diff --git a/test/mjsunit/harmony/function-sent.js b/test/mjsunit/harmony/function-sent.js |
index 9dbc16882ee5129ca0e34f1988cf5e5ac0378e3d..b3cd644dd9ce43da06b58c65dca66faaef58824e 100644 |
--- a/test/mjsunit/harmony/function-sent.js |
+++ b/test/mjsunit/harmony/function-sent.js |
@@ -22,18 +22,25 @@ |
} |
{ |
- x = g(); |
+ let x = g(); |
assertEquals({value: 1, done: false}, x.next(1)); |
assertEquals({value: 2, done: false}, x.next(2)); |
assertEquals({value: 3, done: true}, x.next(3)); |
} |
{ |
- x = g(); |
+ let x = g(); |
assertEquals({value: 1, done: false}, x.next(1)); |
assertEquals({value: 2, done: false}, x.throw(2)); |
assertEquals({value: 3, done: true}, x.next(3)); |
} |
+ |
+ { |
+ let x = g(); |
+ assertEquals({value: 1, done: false}, x.next(1)); |
+ assertEquals({value: 2, done: false}, x.return(2)); |
+ assertEquals({value: 3, done: true}, x.next(3)); |
+ } |
} |
@@ -53,18 +60,25 @@ |
} |
{ |
- x = g(); |
+ let x = g(); |
assertEquals({value: 1, done: false}, x.next(1)); |
assertEquals({value: undefined, done: false}, x.next(2)); |
assertEquals({value: 3, done: true}, x.next(3)); |
} |
{ |
- x = g(); |
+ let x = g(); |
assertEquals({value: 1, done: false}, x.next(1)); |
assertEquals({value: undefined, done: false}, x.next(2)); |
assertEquals({value: 42, done: true}, x.throw(42)); |
} |
+ |
+ { |
+ let x = g(); |
+ assertEquals({value: 1, done: false}, x.next(1)); |
+ assertEquals({value: undefined, done: false}, x.next(2)); |
+ assertEquals({value: 42, done: true}, x.return(42)); |
+ } |
} |