diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-12-11 15:29:52 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-12-13 23:07:06 +0100 |
commit | a60056df3cad2867d337fc1d7adeebe66f89031a (patch) | |
tree | e99e76551afcf80269e36faca2084898be948e05 /src/string_bytes.h | |
parent | 370e82142456cbfced954c7d73360660b7fd81cb (diff) | |
download | android-node-v8-a60056df3cad2867d337fc1d7adeebe66f89031a.tar.gz android-node-v8-a60056df3cad2867d337fc1d7adeebe66f89031a.tar.bz2 android-node-v8-a60056df3cad2867d337fc1d7adeebe66f89031a.zip |
src: fix addon loader regression
Fix a regression that was introduced in commit a38b9178 by removing the
bad check. Also rearrange the addon loading logic to ensure that the
list of pending addons remains in a consistent state when the shared
object fails to load; in particular, when an addon self-registers first,
then hits a dynamic linker error in a later constructor.
Fixes the following asserting when loading a .node shared object:
node: ../src/node.cc:1944: void node::node_module_register(void*):
Assertion `(modpending) != (nullptr)' failed.
Fixes strongloop/strongops#233.
PR-URL: https://github.com/iojs/io.js/pull/154
Reviewed-By: Ryan Graham <ryan@strongloop.com>
Diffstat (limited to 'src/string_bytes.h')
0 files changed, 0 insertions, 0 deletions