Skip to content

Add support for case insensitive filesystems #6

@wiwichips

Description

@wiwichips

For example, using NTFS on windows results in this behaviour:

.\\Example.js

exports.hello = 'world';

.\\main.js

...
const hw1 = ctxRequire('.\\example.js');
const hw2 = ctxRequire('.\\EXAMPLE.JS');

hw1.hello = 'Jupiter';

console.log(hw1); // prints { hello: 'Jupiter' }
console.log(hw2); // prints { hello: 'world' } <-- but should be { hello: 'Jupiter' }...

assert.equals(hw1.hello, hw2.hello); // assertion error...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions