Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
node: bump NODE_MODULE_VERSION
Browse files Browse the repository at this point in the history
Bump NODE_MODULE_VERSION so old modules won't load without recompiling when
the next major release (v0.10) comes out.

This is necessary because the ABI changes between major releases.
  • Loading branch information
bnoordhuis committed Jul 26, 2012
1 parent 2a30d32 commit c3d4c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node.h
Expand Up @@ -212,9 +212,9 @@ node_module_struct* get_builtin_module(const char *name);
* 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
* other dependencies
* other dependencies.
*/
#define NODE_MODULE_VERSION (1)
#define NODE_MODULE_VERSION 0x000A /* v0.10 */

#define NODE_STANDARD_MODULE_STUFF \
NODE_MODULE_VERSION, \
Expand Down

0 comments on commit c3d4c35

Please sign in to comment.