1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/devtools/acorn/UPGRADING.md Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +Assuming that acorn's dependencies have not changed, to upgrade our tree's 1.5 +acorn to a new version: 1.6 + 1.7 +1. Clone the acorn repository, and check out the version you want to upgrade 1.8 +to: 1.9 + 1.10 + $ git clone https://github.com/marijnh/acorn.git 1.11 + $ cd acorn 1.12 + $ git checkout <version> 1.13 + 1.14 +2. Make sure that all tests pass: 1.15 + 1.16 + $ npm install . 1.17 + $ npm test 1.18 + 1.19 + If there are any test failures, do not upgrade to that version of acorn! 1.20 + 1.21 +3. Copy acorn.js to our tree: 1.22 + 1.23 + $ cp acorn.js /path/to/mozilla-central/toolkit/devtools/acorn/acorn.js 1.24 + 1.25 +4. Copy acorn_loose.js to our tree: 1.26 + 1.27 + $ cp acorn_loose.js /path/to/mozilla-central/toolkit/devtools/acorn/acorn_loose.js 1.28 + 1.29 +5. Copy util/walk.js to our tree: 1.30 + 1.31 + $ cp util/walk.js /path/to/mozilla-central/toolkit/devtools/acorn/walk.js