From 9b8f0a7d6f4546956866e338f0e6996e906d9a02 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Tue, 23 Feb 2016 10:23:27 +0100 Subject: omit 'this before super' errors from build --- gulpfile.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 81ed06e4de1..3f93cf891b5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -43,7 +43,17 @@ function createCompile(build, emitError) { var opts = _.clone(tsOptions); opts.inlineSources = !!build; - var ts = tsb.create(opts, null, null, quiet ? null : function (err) { reporter(err.toString()); }); + var ts = tsb.create(opts, null, null, quiet ? null : function (err) { + var str = err.toString(); + + // TODO: remove SOON + if (/'super' must be called before accessing 'this' in the constructor of a derived class/.test(str)) { + console.log(str); + return; + } + + reporter(str); + }); return function (token) { var utf8Filter = filter('**/test/**/*utf8*', { restore: true }); -- cgit v1.2.3