Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Unified Diff: test/mjsunit/harmony/templates.js

Issue 731573004: Implement ES6 String.raw behind --harmony-templates (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nits Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/harmony/string-raw.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/templates.js
diff --git a/test/mjsunit/harmony/templates.js b/test/mjsunit/harmony/templates.js
index 15ad9e92ca889762ce125cf05a3c811fad92a5f2..7c63ec968cc8b1fd36e358a1863732a50bbdf9db 100644
--- a/test/mjsunit/harmony/templates.js
+++ b/test/mjsunit/harmony/templates.js
@@ -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() {
« no previous file with comments | « test/mjsunit/harmony/string-raw.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698