Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Native addons support #57
Assuming the target machine is the same architecture as the current machine (for this reason the suggestion would be to implement this behind a
The assumption is that the "patterns" for binary emission are generally only of a few types, and that we can build static analysis to detect those patterns and provide an adequate substitution for them through (1) detecting where the binary is based on this static analysis and (2) rewriting the locator code as we do for other fs relocations to point to this new binary location.
Detection Cases (not comprehensive, just what I can find on a quick review):
The rewriting just full replaces the statically known path. Eg
There may still be edge cases that are not analyzable, but this partial executor already takes into account all
tried ncc on one of our APIs with Newrelic on it - failed due to "node-gyp"
see logs on Node v8.12.0