Closed
Description
for (var i = 0; i < 18436; i++);
require('http').notAFunction();
results in
require('http').notAFunction();
^
TypeError: require is not a function
But
for (var i = 0; i < 18435; i++);
require('http').notAFunction();
results in
require('http').notAFunction();
^
TypeError: require(...).notAFunction is not a function
For anything ≤ 18435 the error message is correct, for anything ≥ 18436 the error message is wrong.
Reproduced on v4.x and v5.1.0. If you can't reproduce that, try using some high number there.