void StringDistanceJs::toString(const FunctionCallbackInfo<Value>& args) { HandleScope scope(args.GetIsolate()); StringDistancePtr sd = toCpp<StringDistancePtr>(args.This()); args.GetReturnValue().Set(toV8(sd->toString())); }
Handle<Value> StringDistanceJs::toString(const Arguments& args) { HandleScope scope; StringDistancePtr sd = toCpp<StringDistancePtr>(args.This()); return scope.Close(toV8(sd->toString())); }