-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
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.
Metadata
Metadata
Assignees
Labels
v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.