13 lines
372 B
TypeScript
13 lines
372 B
TypeScript
//// [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.
|
|
var x = yield "abc" + x + "def";
|
|
}
|