From dc19d9666c37cec70f6b33eafbfaab21bea78cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loix?= Date: Fri, 3 Nov 2017 11:12:57 +0100 Subject: [PATCH] fix(systemjs-loader): tests with PhantomJS When launching test with PhantomJS it breaks with the following message: (SystemJS) Expected an identifier but found 'resolvedUrl' Changing "let" with "var" fixes the bug. --- integration/src/systemjs-angular-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/src/systemjs-angular-loader.js b/integration/src/systemjs-angular-loader.js index 38e5cc5..4632964 100644 --- a/integration/src/systemjs-angular-loader.js +++ b/integration/src/systemjs-angular-loader.js @@ -23,7 +23,7 @@ module.exports.translate = function (load) { load.source = load.source .replace(templateUrlRegex, function (match, quote, url) { - let resolvedUrl = url; + var resolvedUrl = url; if (url.startsWith('.')) { resolvedUrl = basePath + url.substr(1);