mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
363 B
13 lines
363 B
8 years ago
|
#include <node_api.h>
|
||
|
#include "../common.h"
|
||
|
|
||
|
void Init(napi_env env, napi_value exports, napi_value module, void* context) {
|
||
|
napi_value external;
|
||
|
NAPI_CALL_RETURN_VOID(env,
|
||
|
napi_create_external(env, env, NULL, NULL, &external));
|
||
|
NAPI_CALL_RETURN_VOID(env,
|
||
|
napi_set_named_property(env, module, "exports", external));
|
||
|
}
|
||
|
|
||
|
NAPI_MODULE(store_env, Init)
|