diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2016-12-22 10:31:36 -0800 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-01-31 17:07:49 -0500 |
commit | 7da06088eb86faae662a7b9d3b66b7b96daa38c5 (patch) | |
tree | 897c2be4bf9cc73d115da549f77b7d5c5348cdc2 /src/node_version.h | |
parent | 017764018c19ced67c613153d50627c68109842d (diff) | |
download | node-new-7da06088eb86faae662a7b9d3b66b7b96daa38c5.tar.gz |
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/node_version.h')
-rw-r--r-- | src/node_version.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_version.h b/src/node_version.h index 6617a97d60..482ac0b4f6 100644 --- a/src/node_version.h +++ b/src/node_version.h @@ -47,6 +47,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 |