diff options
author | RabsRincon <rubrinbla@gmail.com> | 2018-01-18 19:43:10 +0100 |
---|---|---|
committer | RabsRincon <rubrinbla@gmail.com> | 2018-01-18 19:43:10 +0100 |
commit | a54faefb4c8668d9c9f93c78bd6bc639d1f0c219 (patch) | |
tree | 6465bf3e1d8e270cc53e67c04277c5773b16f7d6 /lib/compilers/default.js | |
parent | 7bd30b4c4b10f93f26db81fbbe492149b8d487eb (diff) | |
download | compiler-explorer-a54faefb4c8668d9c9f93c78bd6bc639d1f0c219.tar.gz compiler-explorer-a54faefb4c8668d9c9f93c78bd6bc639d1f0c219.zip |
ES6fy compilers inheritance
Diffstat (limited to 'lib/compilers/default.js')
-rw-r--r-- | lib/compilers/default.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/compilers/default.js b/lib/compilers/default.js index bc65d81d6..f9ad44fff 100644 --- a/lib/compilers/default.js +++ b/lib/compilers/default.js @@ -22,9 +22,13 @@ // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. -const Compile = require('../base-compiler'); +const BaseCompier = require('../base-compiler'); -module.exports = function (info, env) { - var comp = new Compile(info, env); - return comp.initialise(); -};
\ No newline at end of file +class DefaultCompiler extends BaseCompier { + constructor(info, env) { + super(info, env); + return this.initialise(); + } +} + +module.exports = DefaultCompiler; |