From 6a4dc7a6a5b796e0215e5b9abf99494ac13cb647 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 12 Jan 2017 21:00:44 +0100 Subject: [PATCH] fix: no longer use es6 let statement (#3963) * Currently in Protractor v5 the Angular detection script uses ES6 features like the `let` modifier. This can break Protractor on browsers, which doesn't support those statements. > See https://saucelabs.com/beta/tests/275f75091dac40a0a3374d29d912caee/commands#11 --- lib/clientsidescripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clientsidescripts.js b/lib/clientsidescripts.js index dd99ebe20..e86f776fa 100644 --- a/lib/clientsidescripts.js +++ b/lib/clientsidescripts.js @@ -137,7 +137,7 @@ functions.waitForAngular = function(rootSelector, callback) { if (window.angular && !(window.angular.version && window.angular.version.major > 1)) { /* ng1 */ - let hooks = getNg1Hooks(rootSelector); + var hooks = getNg1Hooks(rootSelector); if (hooks.$$testability) { hooks.$$testability.whenStable(callback); } else if (hooks.$injector) {