| 105 | } |
| 106 | |
| 107 | Object InitName(Env env) { |
| 108 | Object exports = Object::New(env); |
| 109 | |
| 110 | exports["echoString"] = Function::New(env, EchoString); |
| 111 | exports["createString"] = Function::New(env, CreateString); |
| 112 | exports["createStringFromStringView"] = |
| 113 | Function::New(env, CreateStringFromStringView); |
| 114 | exports["nullStringShouldThrow"] = Function::New(env, NullStringShouldThrow); |
| 115 | exports["nullString16ShouldThrow"] = |
| 116 | Function::New(env, NullString16ShouldThrow); |
| 117 | exports["checkString"] = Function::New(env, CheckString); |
| 118 | exports["createSymbol"] = Function::New(env, CreateSymbol); |
| 119 | exports["createSymbolFromStringView"] = |
| 120 | Function::New(env, CreateSymbolFromStringView); |
| 121 | exports["checkSymbol"] = Function::New(env, CheckSymbol); |
| 122 | |
| 123 | return exports; |
| 124 | } |