Index: test/mjsunit/harmony/templates.js |
diff --git a/test/mjsunit/harmony/templates.js b/test/mjsunit/harmony/templates.js |
index 15ad9e92ca889762ce125cf05a3c811fad92a5f2..018a9d513efef02ecb409d28cfa68cb069b367d6 100644 |
--- a/test/mjsunit/harmony/templates.js |
+++ b/test/mjsunit/harmony/templates.js |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --harmony-templates |
+// Flags: --harmony-templates --harmony-strings |
var num = 5; |
var str = "str"; |
@@ -330,6 +330,14 @@ var obj = { |
})(); |
+(function testStringRawAsTagFn() { |
+ assertEquals("\\u0065\\`\\r\\r\\n\\ntestcheck", |
+ String.raw`\u0065\`\r\r\n\n${"test"}check`); |
+ assertEquals("\\\n\\\n\\\n", eval("String.raw`\\\r\\\r\n\\\n`")); |
+ assertEquals("", String.raw``); |
+})(); |
+ |
+ |
(function testExtendedArrayPrototype() { |
Object.defineProperty(Array.prototype, 0, { |
set: function() { |