mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Fix issue in Acorn that breaks Node support.
This commit is contained in:
parent
9cca6d8a00
commit
0fe431adfb
2 changed files with 3 additions and 3 deletions
2
lib/acorn-min.js
vendored
2
lib/acorn-min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -23,13 +23,13 @@
|
|||
(function(mod) {
|
||||
if (typeof exports == "object" && typeof module == "object") return mod(exports); // CommonJS
|
||||
if (typeof define == "function" && define.amd) return define(["exports"], mod); // AMD
|
||||
mod(self.acorn || (self.acorn = {})); // Plain browser env
|
||||
mod(this.acorn || (this.acorn = {})); // Plain browser env
|
||||
})(function(exports) {
|
||||
"use strict";
|
||||
|
||||
exports.version = "0.2.01";
|
||||
|
||||
// The main exported interface (under `self.acorn` when in the
|
||||
// The main exported interface (under `this.acorn` when in the
|
||||
// browser) is a `parse` function that takes a code string and
|
||||
// returns an abstract syntax tree as specified by [Mozilla parser
|
||||
// API][api], with the caveat that the SpiderMonkey-specific syntax
|
||||
|
|
Loading…
Reference in a new issue