-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
questionIssues that look for answers.Issues that look for answers.
Description
for (var i = 0; i < 10; i++) {
var jsonObject = require('file.json');
functionChangeJsonObject(jsonObject);
}
First call require load file from filesystem, second call get this file from cache (reference on object). But my function(s) may be change this object. And second call require return changed object. It is normal behavior or not?
Metadata
Metadata
Assignees
Labels
questionIssues that look for answers.Issues that look for answers.