From dfe4ce86e06b58e7d9bbcd2b5c53fa553b10a2fe Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 9 Nov 2014 12:09:32 +1100 Subject: [PATCH] fix up templateLiterals blacklist check --- lib/6to5/register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/register.js b/lib/6to5/register.js index c8740a38d5..81f74afa3b 100644 --- a/lib/6to5/register.js +++ b/lib/6to5/register.js @@ -50,7 +50,7 @@ blacklistTest("propertyMethodAssignment", "{ get foo() {} }"); blacklistTest("propertyNameShorthand", "var foo = { x, y };"); blacklistTest("restParameters", "function foo(...bar) {}"); blacklistTest("spread", "foo(...bar);"); -blacklistTest("templateLiterals", "`foo`"); +blacklistTest("templateLiterals", "var foo = `foo`;"); blacklistTest("unicodeRegex", function () { new RegExp("foo", "u"); }); //