Make require() compliant with CommonJS Modules/1.1

This commit is contained in:
natecain
2013-10-12 13:44:09 -04:00
parent 539915d300
commit 951019eacc
34 changed files with 546 additions and 37 deletions

View File

@@ -0,0 +1,16 @@
/*\
title: relative/program.js
type: application/javascript
module-type: library
Relative test
\*/
var test = require('test');
var a = require('submodule/a');
var b = require('submodule/b');
test.assert(a.foo == b.foo, 'a and b share foo through a relative require');
test.print('DONE', 'info');