Handle<Value> ByteReaderWithPositionDriver::New(const Arguments& args) { HandleScope scope; ByteReaderWithPositionDriver* driver = new ByteReaderWithPositionDriver(); driver->Wrap(args.This()); return args.This(); }
METHOD_RETURN_TYPE ByteReaderWithPositionDriver::New(const ARGS_TYPE& args) { CREATE_ISOLATE_CONTEXT; CREATE_ESCAPABLE_SCOPE; ByteReaderWithPositionDriver* driver = new ByteReaderWithPositionDriver(); driver->Wrap(args.This()); SET_FUNCTION_RETURN_VALUE(args.This()); }