| 69 | } // end anonymous namespace |
| 70 | |
| 71 | Object InitExternal(Env env) { |
| 72 | Object exports = Object::New(env); |
| 73 | |
| 74 | exports["createExternal"] = Function::New(env, CreateExternal); |
| 75 | exports["createExternalWithFinalize"] = |
| 76 | Function::New(env, CreateExternalWithFinalize); |
| 77 | exports["createExternalWithFinalizeException"] = |
| 78 | Function::New(env, CreateExternalWithFinalizeException); |
| 79 | exports["createExternalWithFinalizeHint"] = |
| 80 | Function::New(env, CreateExternalWithFinalizeHint); |
| 81 | exports["checkExternal"] = Function::New(env, CheckExternal); |
| 82 | exports["getFinalizeCount"] = Function::New(env, GetFinalizeCount); |
| 83 | |
| 84 | return exports; |
| 85 | } |