mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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,
|
parseLeftHandSideExpression: true,
|
||||||
parseStatement: true, parseSourceElement: true */
|
parseStatement: true, parseSourceElement: true */
|
||||||
|
|
||||||
(function (root, factory) {
|
(function (exports) {
|
||||||
'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) {
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var Token,
|
var Token,
|
||||||
|
@ -3805,5 +3793,5 @@ parseStatement: true, parseSourceElement: true */
|
||||||
return types;
|
return types;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
}));
|
})(typeof exports === "undefined" ? (window.esprima = {}) : exports);
|
||||||
/* vim: set sw=4 ts=4 et tw=80 : */
|
/* vim: set sw=4 ts=4 et tw=80 : */
|
||||||
|
|
Loading…
Reference in a new issue