From 7fa8dbd85a1dfbe8e5cf5f050abc6ad71d3dc22c Mon Sep 17 00:00:00 2001 From: partouf Date: Wed, 3 Jan 2018 13:09:50 +0100 Subject: [PATCH] shortened notation --- lib/compilers/WSL-CL.js | 6 +----- lib/compilers/Wine-CL.js | 6 +----- lib/compilers/pascal.js | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/lib/compilers/WSL-CL.js b/lib/compilers/WSL-CL.js index e0272be87..1a3e37ec1 100644 --- a/lib/compilers/WSL-CL.js +++ b/lib/compilers/WSL-CL.js @@ -68,11 +68,7 @@ function compileCl(info, env) { return false; }; - compile.getArgumentParser = function () { - return function (compiler) { - return compiler; - } - }; + compile.getArgumentParser = () => (compiler) => compiler; compile.postProcessAsm = function(result) { return RunCLDemangler(this, result); diff --git a/lib/compilers/Wine-CL.js b/lib/compilers/Wine-CL.js index 82422b45e..c2cd4eaa3 100644 --- a/lib/compilers/Wine-CL.js +++ b/lib/compilers/Wine-CL.js @@ -48,11 +48,7 @@ function compileCl(info, env) { return false; }; - compile.getArgumentParser = function () { - return function (compiler) { - return compiler; - } - }; + compile.getArgumentParser = () => (compiler) => compiler; compile.postProcessAsm = function(result) { return RunCLDemangler(this, result); diff --git a/lib/compilers/pascal.js b/lib/compilers/pascal.js index 9799d0ebc..3fa0d3821 100644 --- a/lib/compilers/pascal.js +++ b/lib/compilers/pascal.js @@ -188,11 +188,7 @@ function compileFPC(info, env) { originalExecBinary(executable, result, maxSize); }; - compiler.getArgumentParser = function () { - return function (compiler) { - return compiler; - } - }; + compiler.getArgumentParser = () => (compiler) => compiler; if (info.unitTestMode) { compiler.initialise();