Add note about browser compatibility to README

Closes #105
This commit is contained in:
Marijn Haverbeke 2014-06-04 22:51:05 +02:00
parent 7f0f07e1f9
commit 3a34f7ba8c

View File

@ -22,9 +22,10 @@ git clone https://github.com/marijnh/acorn.git
When run in a CommonJS (node.js) or AMD environment, exported values
appear in the interfaces exposed by the individual files, as usual.
When loaded in the browser without any kind of module management, a
single global object `acorn` will be defined, and all the exported
properties will be added to that.
When loaded in the browser (Acorn works in any JS-enabled browser more
recent than IE5) without any kind of module management, a single
global object `acorn` will be defined, and all the exported properties
will be added to that.
### acorn.js