mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 20:25:23 -06:00
Updated a few baselines
This commit is contained in:
parent
78cdb2d902
commit
fe13cdc7bd
@ -13,4 +13,14 @@ middle${
|
||||
tail`;
|
||||
|
||||
//// [templateStringWithEmbeddedCommentsES6.js]
|
||||
"head" + 10 + "\nmiddle" + 20 + "\ntail";
|
||||
`head${ // single line comment
|
||||
10}
|
||||
middle${
|
||||
/* Multi-
|
||||
* line
|
||||
* comment
|
||||
*/
|
||||
20
|
||||
// closing comment
|
||||
}
|
||||
tail`;
|
||||
|
||||
@ -6,7 +6,7 @@ function* gen {
|
||||
|
||||
|
||||
//// [templateStringWithEmbeddedYieldKeyword.js]
|
||||
function gen() {
|
||||
function* gen() {
|
||||
// Once this is supported, yield *must* be parenthesized.
|
||||
var x = "abc" + (yield 10) + "def";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user