diff options
author | Joao Moreno <jomo@microsoft.com> | 2016-02-23 12:23:27 +0300 |
---|---|---|
committer | Joao Moreno <jomo@microsoft.com> | 2016-02-23 12:23:27 +0300 |
commit | 9b8f0a7d6f4546956866e338f0e6996e906d9a02 (patch) | |
tree | 39f0d4614578baaa59c79c717188c7b2dfa35bea /gulpfile.js | |
parent | 6945d3a5ad6ba6ba01dd6ef6996f3865441ed487 (diff) |
omit 'this before super' errors from build
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 12 |
1 files changed, 11 insertions, 1 deletions
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 }); |