コード例 #1
0
Handle<Value> ByteReaderWithPositionDriver::New(const Arguments& args)
{
    HandleScope scope;
    
    ByteReaderWithPositionDriver* driver = new ByteReaderWithPositionDriver();
    driver->Wrap(args.This());
    return args.This();
}
コード例 #2
0
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());
}