mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Use Acorn's exports mechanism for Esprima, so it works included inside Paper.js
This commit is contained in:
parent
b977e18e3b
commit
14642e63b3
2 changed files with 4 additions and 16 deletions
4
lib/esprima-min.js
vendored
4
lib/esprima-min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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 : */
|
||||
|
|
Loading…
Reference in a new issue