Use Acorn's exports mechanism for Esprima, so it works included inside Paper.js

This commit is contained in:
Jürg Lehni 2012-11-18 10:31:40 -08:00
parent b977e18e3b
commit 14642e63b3
2 changed files with 4 additions and 16 deletions

4
lib/esprima-min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -37,19 +37,7 @@ parseFunctionSourceElements: true, parseVariableIdentifier: true,
parseLeftHandSideExpression: true,
parseStatement: true, parseSourceElement: true */
(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 (exports) {
'use strict';
var Token,
@ -3805,5 +3793,5 @@ parseStatement: true, parseSourceElement: true */
return types;
}());
}));
})(typeof exports === "undefined" ? (window.esprima = {}) : exports);
/* vim: set sw=4 ts=4 et tw=80 : */