13 lines
334 B
JavaScript
13 lines
334 B
JavaScript
//// [templateStringWithEmbeddedYieldKeyword.ts]
|
|
function* gen {
|
|
// Once this is supported, yield *must* be parenthesized.
|
|
var x = `abc${ yield 10 }def`;
|
|
}
|
|
|
|
|
|
//// [templateStringWithEmbeddedYieldKeyword.js]
|
|
function gen() {
|
|
// Once this is supported, yield *must* be parenthesized.
|
|
var x = "abc" + + "def";
|
|
}
|