judofyr/duktape.rb — pull request #5 by josh (2014-12-08 01:50:48+00:00)
Title: Undefine module support

Duktape has some shims for CJS style modules. However, its pretty useless in the context of this extension since you still need to write some c code to tell the module loader how to read files from disk. That leaves a broken `require` as global function. Its typical for JS libraries to test for `require` and `module` and behavior definitely in a CJS environment.

It might be interesting to implement the module loader stuff someday, but for I think we should just remove them and normalize the default context.