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