Unverified Commit 99397623 authored by Ruben Bridgewater's avatar Ruben Bridgewater
Browse files

module: prevent race condition while combining import and require

This checks if any require calls have happened to the same file
during the file read. If that was the case, it'll return the same
module instead of creating a new instance.

PR-URL: https://github.com/nodejs/node/pull/27674


Reviewed-By: default avatarGuy Bedford <guybedford@gmail.com>
parent 52255868
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment