joyent/node — Issue #2008: require('native_module') not working
Author: herby
Created: 2011-11-04 09:53:20+00:00
State: open

When called from normal (non-native) code.

Reason: `NativeModule.exists('native_module')` returns false.

Possible solutions:

* Add `|| id == 'native_module'` to `NativeModule.exists`
* Add `/* This name represents native module system and is resolved in node.js */` into natives binding under key `native_module` (this way `in` is enough to catch it in `exists`)