Пример #1
0
void StringDistanceJs::toString(const FunctionCallbackInfo<Value>& args)
{
  HandleScope scope(args.GetIsolate());

  StringDistancePtr sd = toCpp<StringDistancePtr>(args.This());

  args.GetReturnValue().Set(toV8(sd->toString()));
}
Пример #2
0
Handle<Value> StringDistanceJs::toString(const Arguments& args)
{
  HandleScope scope;

  StringDistancePtr sd = toCpp<StringDistancePtr>(args.This());

  return scope.Close(toV8(sd->toString()));
}