From 7da9191dc37480a82f5f7fce7a607d3e3a506b6e Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Wed, 14 Aug 2019 20:12:24 +0100 Subject: [PATCH] massage so that spread can be used with Error under ecmascript3 --- src/common/logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/logger.js b/src/common/logger.js index 9fb5f7a..b78cd0e 100644 --- a/src/common/logger.js +++ b/src/common/logger.js @@ -8,7 +8,7 @@ function error(...args) { executeLog( () => { // If this is a Jasmine run, throw loudly. Causing the tests to barf. - throw new Error('Could not complete the test successfully - ', ...args); + throw Error.apply(null, ['Could not complete the test successfully - ', ...args]); }, () => console.error(...args) );