GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Replace vague 'may not' with definitive 'will not' · nodejs/node@39e3ef7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • modules.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/modules.md‎

Copy file name to clipboardExpand all lines: doc/api/modules.md
+5-4Lines changed: 5 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,11 @@ Modules are cached after the first time they are loaded. This means
200200
(among other things) that every call to `require('foo')` will get
201201
exactly the same object returned, if it would resolve to the same file.
202202

203-
Multiple calls to `require('foo')` may not cause the module code to be
204-
executed multiple times. This is an important feature. With it,
205-
"partially done" objects can be returned, thus allowing transitive
206-
dependencies to be loaded even when they would cause cycles.
203+
Provided `require.cache` is not modified, multiple calls to
204+
`require('foo')` will not cause the module code to be executed multiple times.
205+
This is an important feature. With it, "partially done" objects can be returned,
206+
thus allowing transitive dependencies to be loaded even when they would cause
207+
cycles.
207208

208209
To have a module execute code multiple times, export a function, and call
209210
that function.

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.