small improvements in wrap_commonjs:
authorMihai Bazon <mihai@bazon.net>
Wed, 10 Oct 2012 08:28:05 +0000 (11:28 +0300)
committerMihai Bazon <mihai@bazon.net>
Wed, 10 Oct 2012 08:28:05 +0000 (11:28 +0300)
commitf26f3b44bc238c5ea9772ccea5a21c9c928b6fd9
tree7a8994055c58337b425c9d1fcf2c7a24106cf0c4
parentc5ecbfc756a4ed0aa736a82a062441b97effa7f5
small improvements in wrap_commonjs:

- use MAP.splice instead of a BlockStatement to inject code (avoids some
  warnings in the linter)
- use the original symbol in exports, so that we get the proper source mapping
lib/ast.js