mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Meghan Denny <meghan@bun.sh> Co-authored-by: Ashcon Partovi <ashcon@partovi.net> Co-authored-by: pfg <pfg@pfg.pw> Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com> Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com> Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
27 lines
792 B
C++
27 lines
792 B
C++
#include <node.h>
|
|
|
|
void init(v8::Local<v8::Object> exports, v8::Local<v8::Value> module,
|
|
void *priv) {
|
|
// this should not even get called
|
|
abort();
|
|
}
|
|
|
|
extern "C" {
|
|
static node::node_module _module = {
|
|
// bun expects 137 (Node.js 24.3.0)
|
|
42, // nm_version
|
|
0, // nm_flags
|
|
nullptr, // nm_dso_handle
|
|
"mismatched_abi_version.cpp", // nm_filename
|
|
init, // nm_register_func
|
|
nullptr, // nm_context_register_func
|
|
"mismatched_abi_version", // nm_modname
|
|
nullptr, // nm_priv
|
|
nullptr, // nm_link
|
|
};
|
|
|
|
NODE_C_CTOR(_register_mismatched_abi_version) {
|
|
node_module_register(&_module);
|
|
}
|
|
}
|