* Remove whitespace generation and rely on default printing Changes to printing: * Add newline after last empty SwitchCase * Add newlines around block comments if they are non-flow comments or contain newlines * Fix a few more fixtures
39 lines
760 B
JavaScript
39 lines
760 B
JavaScript
(function (global, factory) {
|
|
if (typeof define === "function" && define.amd) {
|
|
define(["exports"], factory);
|
|
} else if (typeof exports !== "undefined") {
|
|
factory(exports);
|
|
} else {
|
|
var mod = {
|
|
exports: {}
|
|
};
|
|
factory(mod.exports);
|
|
global.actual = mod.exports;
|
|
}
|
|
})(this, function (exports) {
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
var test = exports.test = 2;
|
|
exports.test = test = 5;
|
|
exports.test = test += 1;
|
|
|
|
(function () {
|
|
var test = 2;
|
|
test = 3;
|
|
test++;
|
|
})();
|
|
|
|
var a = 2;
|
|
exports.a = a;
|
|
exports.a = a = 3;
|
|
var b = 2;
|
|
exports.c = b;
|
|
exports.c = b = 3;
|
|
var d = 3;
|
|
exports.e = d;
|
|
exports.f = d;
|
|
exports.f = exports.e = d = 4;
|
|
}); |