Skip to content

Commit

Permalink
dynamic_library: inherit the descriptors for the FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Oct 4, 2012
1 parent b544156 commit a4f2caa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dynamic_library.js
Expand Up @@ -83,7 +83,8 @@ module.exports = DynamicLibrary
DynamicLibrary.FLAGS = {};
Object.keys(bindings).forEach(function (k) {
if (!/^RTLD_/.test(k)) return;
DynamicLibrary.FLAGS[k] = bindings[k];
var desc = Object.getOwnPropertyDescriptor(bindings, k)
Object.defineProperty(DynamicLibrary.FLAGS, k, desc)
});


Expand Down

0 comments on commit a4f2caa

Please sign in to comment.