| 71 | } |
| 72 | |
| 73 | Object InitHandleScope(Env env) { |
| 74 | Object exports = Object::New(env); |
| 75 | |
| 76 | exports["createScope"] = Function::New(env, createScope); |
| 77 | exports["createScopeFromExisting"] = |
| 78 | Function::New(env, createScopeFromExisting); |
| 79 | exports["escapeFromScope"] = Function::New(env, escapeFromScope); |
| 80 | exports["escapeFromExistingScope"] = |
| 81 | Function::New(env, escapeFromExistingScope); |
| 82 | exports["stressEscapeFromScope"] = Function::New(env, stressEscapeFromScope); |
| 83 | exports["doubleEscapeFromScope"] = Function::New(env, doubleEscapeFromScope); |
| 84 | |
| 85 | return exports; |
| 86 | } |