2015-02-03 00:15:54 +01:00
|
|
|
//// [templateStringInYieldKeyword.ts]
|
|
|
|
function* gen() {
|
|
|
|
// Once this is supported, the inner expression does not need to be parenthesized.
|
|
|
|
var x = yield `abc${ x }def`;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [templateStringInYieldKeyword.js]
|
|
|
|
function gen() {
|
|
|
|
// Once this is supported, the inner expression does not need to be parenthesized.
|
2015-04-10 07:57:13 +02:00
|
|
|
var x = yield "abc" + x + "def";
|
2015-02-03 00:15:54 +01:00
|
|
|
}
|