MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / Execute

Method Execute

node/opencc.cc:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 void Execute() override {
37 try {
38 output_ = instance_->Convert(input_);
39 } catch (opencc::Exception& e) {
40 SetError(e.what());
41 }
42 }
43
44 void OnOK() override {
45 Callback().Call({Env().Undefined(), Napi::String::New(Env(), output_)});

Callers

nothing calls this directly

Calls 3

SetErrorFunction · 0.85
ConvertMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected