browserify / commonjs-assert

Node.js's require('assert') for all engines
MIT License
293 stars 57 forks source link

Remove 'util' dependency #50

Closed znarf closed 4 years ago

znarf commented 4 years ago

It doesn't seems to be used.

znarf commented 4 years ago

@ljharb Sorry, my bad. I read the code too fast and understood that it was including the util folder in the current package.

Do you know by chance why it's written require('util/') and not require('util')?

ljharb commented 4 years ago

Because util is a node core module, so require('util') would never hit the filesystem. The trailing slash forces it to do so.