1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

[CS2] Replace Closure Compiler with Babili, transform browser compiler into ES5-ish (#4523)

* Swap Google Closure Compiler for Babili

* Browser compiler, minified by Babili

* Use Babel to transform, not just to minify; add process.env.TRANSFORM to disable transforming if we only want to minify. Unfortunately several browser tests fail when transformed . . .

* Move `super()` calls so that the Babel-transformed browser compiler passes all the browser tests (in Node, at least)

* Updated browser build

* Update browser tests
This commit is contained in:
Geoffrey Booth 2017-04-26 16:21:29 -07:00 committed by GitHub
parent 7ef5cb4a1f
commit 277975e33a
6 changed files with 303 additions and 8103 deletions

View file

@ -818,10 +818,10 @@
exports.Value = Value = (function() {
class Value extends Base {
constructor(base, props, tag, isDefaultValue = false) {
super();
if (!props && base instanceof Value) {
return base;
}
super();
this.base = base;
this.properties = props || [];
if (tag) {
@ -3222,6 +3222,7 @@
class Op extends Base {
constructor(op, first, second, flip) {
super();
if (op === 'in') {
return new In(first, second);
}
@ -3236,7 +3237,6 @@
first = new Parens(first);
}
}
super();
this.operator = CONVERSIONS[op] || op;
this.first = first;
this.second = second;