michael@0: Assuming that acorn's dependencies have not changed, to upgrade our tree's michael@0: acorn to a new version: michael@0: michael@0: 1. Clone the acorn repository, and check out the version you want to upgrade michael@0: to: michael@0: michael@0: $ git clone https://github.com/marijnh/acorn.git michael@0: $ cd acorn michael@0: $ git checkout michael@0: michael@0: 2. Make sure that all tests pass: michael@0: michael@0: $ npm install . michael@0: $ npm test michael@0: michael@0: If there are any test failures, do not upgrade to that version of acorn! michael@0: michael@0: 3. Copy acorn.js to our tree: michael@0: michael@0: $ cp acorn.js /path/to/mozilla-central/toolkit/devtools/acorn/acorn.js michael@0: michael@0: 4. Copy acorn_loose.js to our tree: michael@0: michael@0: $ cp acorn_loose.js /path/to/mozilla-central/toolkit/devtools/acorn/acorn_loose.js michael@0: michael@0: 5. Copy util/walk.js to our tree: michael@0: michael@0: $ cp util/walk.js /path/to/mozilla-central/toolkit/devtools/acorn/walk.js