
"use strict";

function fastNumberParser(args, childValidators, data) {

    data = Number(data);

    if(isNaN(data)) {
        throw new Error("required Number, got: " + typeof data);
    }

    return data;

}

export default {
    name: "FastNumber",
    fn:   fastNumberParser
};

@@ -71,20 +71,21 @@
  %7B%0A%0A    
-data
+let d
  = Numbe
@@ -112,18 +112,13 @@
 aN(d
-ata
 )) %7B%0A
-  
     
@@ -157,12 +157,16 @@
 er, 
-got:
+received
  %22 +
@@ -199,19 +199,16 @@
 return d
-ata
 ;%0A%0A%7D%0A%0Aex

fix fastNumber validator not returning correct type on an error