diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 16:51:29 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:19 -0400 |
commit | afb28a43d481075a244b0e18faa8447dfadacf8f (patch) | |
tree | 5a820425685c2e9986ae34bf9e6325314e3b72a0 /js/src/tests/js1_8_5 | |
parent | adc81d634d12d58a64e0d2a1e95998b766cf6e96 (diff) | |
download | UXP-afb28a43d481075a244b0e18faa8447dfadacf8f.tar UXP-afb28a43d481075a244b0e18faa8447dfadacf8f.tar.gz UXP-afb28a43d481075a244b0e18faa8447dfadacf8f.tar.lz UXP-afb28a43d481075a244b0e18faa8447dfadacf8f.tar.xz UXP-afb28a43d481075a244b0e18faa8447dfadacf8f.zip |
1317375 - Implement "Template Literals Revision / Lifting Template Literal Restriction" ECMAScript proposal
Diffstat (limited to 'js/src/tests/js1_8_5')
-rw-r--r-- | js/src/tests/js1_8_5/reflect-parse/templateStrings.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/tests/js1_8_5/reflect-parse/templateStrings.js b/js/src/tests/js1_8_5/reflect-parse/templateStrings.js index c87ba96b8..fb12afd00 100644 --- a/js/src/tests/js1_8_5/reflect-parse/templateStrings.js +++ b/js/src/tests/js1_8_5/reflect-parse/templateStrings.js @@ -7,6 +7,8 @@ assertStringExpr("`hey\nthere`", literal("hey\nthere")); assertExpr("`hey${\"there\"}`", templateLit([lit("hey"), lit("there"), lit("")])); assertExpr("`hey${\"there\"}mine`", templateLit([lit("hey"), lit("there"), lit("mine")])); assertExpr("`hey${a == 5}mine`", templateLit([lit("hey"), binExpr("==", ident("a"), lit(5)), lit("mine")])); +assertExpr("func`hey\\x`", taggedTemplate(ident("func"), template(["hey\\x"], [void 0]))); +assertExpr("func`hey${4}\\x`", taggedTemplate(ident("func"), template(["hey","\\x"], ["hey",void 0], lit(4)))); assertExpr("`hey${`there${\"how\"}`}mine`", templateLit([lit("hey"), templateLit([lit("there"), lit("how"), lit("")]), lit("mine")])); assertExpr("func`hey`", taggedTemplate(ident("func"), template(["hey"], ["hey"]))); |