Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2016-12-22 21:31:36 +0300
committerJames M Snell <jasnell@gmail.com>2016-12-28 00:38:43 +0300
commit1257546a41991dbf1b613668fc5d00f7605b4112 (patch)
tree2a0f9304de0061cb6770940da07f9a521fc1f8b5 /src
parent0dc09eb7465686cf26a16353abc707c1bbd92d55 (diff)
src: describe what NODE_MODULE_VERSION is for
Current comment described what to do with it when the ABI changes, but implied that Node.js would load modules with newer ABI numbers, which it will not. PR-URL: https://github.com/nodejs/node/pull/10414 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_version.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_version.h b/src/node_version.h
index 61b98b1d508..daefafa8eb2 100644
--- a/src/node_version.h
+++ b/src/node_version.h
@@ -44,6 +44,9 @@
(minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION))
/**
+ * Node.js will refuse to load modules that weren't compiled against its own
+ * module ABI number, exposed as the process.versions.modules property.
+ *
* When this version number is changed, node.js will refuse
* to load older modules. This should be done whenever
* an API is broken in the C++ side, including in v8 or