Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
remove esprima export boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Jun 18, 2013
1 parent 05ae244 commit 84752bd
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions third_party/esprima/esprima.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,7 @@
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

(function (root, factory) {
'use strict';

// Universal Module Definition (UMD) to support AMD, CommonJS/Node.js,
// Rhino, and plain browser loading.
if (typeof define === 'function' && define.amd) {
define(['exports'], factory);
} else if (typeof exports !== 'undefined') {
factory(exports);
} else {
factory((root.esprima = {}));
}
}(this, function (exports) {
(function (global) {
'use strict';

var Token,
Expand Down Expand Up @@ -1207,5 +1195,7 @@
return parseProgram();
}

exports.parse = parse;
}));
global.esprima = {
parse: parse
};
})(this);

0 comments on commit 84752bd

Please sign in to comment.