| 150 | } |
| 151 | |
| 152 | void Init(v8::Local<v8::Object> exports) { |
| 153 | v8::Local<v8::Context> context = exports->GetCreationContextChecked(); |
| 154 | v8::Isolate *isolate = context->GetIsolate(); |
| 155 | exports |
| 156 | ->Set(context, Nan::New("serializeString").ToLocalChecked(), |
| 157 | FastFunction(isolate, serializeString, &fast_serialize_string) |
| 158 | ->GetFunction(context) |
| 159 | .ToLocalChecked()) |
| 160 | .Check(); |
| 161 | } |
| 162 | |
| 163 | NODE_MODULE(fory_util, Init) |
nothing calls this directly
no test coverage detected