node/test/fixtures/module-load-order
Nick Stenning 0a3eff8021 Standardise module load order for native and registered file extensions.
This patch standardises the load order for modules. Highest priority is trying to load exactly the file the user specified, followed by native extensions, followed by registered extra extensions, etc.

In full, if we require('foo') having registered '.coffee' as an alternative extension, we try and load the following files in order:

    foo
    foo.js
    foo.node
    foo.coffee
    foo/index.js
    foo/index.node
    foo/index.coffee
2010-08-04 16:03:08 -07:00
..
file2 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file3 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file4 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file5 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file6 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file7 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file8 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file9 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file1 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file1.js Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file1.node Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file1.reg Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file1.reg2 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file2.js Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file2.node Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file2.reg Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file2.reg2 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file3.node Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file3.reg Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file3.reg2 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file4.reg Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file4.reg2 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00
file5.reg2 Standardise module load order for native and registered file extensions. 2010-08-04 16:03:08 -07:00