component/require — pull request #12 by paulmillr (2012-12-22 20:04:57+00:00)
Title: Change require.register signature and fix `require('toString')`

1. `require.register` sig was changed from `module, exports, require` to `exports, require, module` to match node.js and other implementations.
2. Fixed bugs like `require('toString')`, `require('hasOwnProperty')`.

In IE<=8 the bug will still exist, but more global check will require a lot more code. This will slightly encourage people to upgrade.