You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewTypeError(`Passing a number "${embindRepr(value)}" from JS side to C/C++ side to an argument of type "${name}", which is outside the valid range [${minRange}, ${maxRange}]!`);
thrownewTypeError(`Cannot convert "${embindRepr(value)}" to ${toTypeName}`);
349
358
}
350
-
if(value<minRange||value>maxRange){
351
-
thrownewTypeError(`Passing a number "${embindRepr(value)}" from JS side to C/C++ side to an argument of type "${name}", which is outside the valid range [${minRange}, ${maxRange}]!`);
352
-
}
359
+
assertIntegerRange(name,value,minRange,maxRange);
353
360
#endif
354
361
// The VM will perform JS to Wasm value conversion, according to the spec:
thrownewTypeError(`Cannot convert "${embindRepr(value)}" to ${this.name}`);
400
412
}
401
-
if(value<minRange||value>maxRange){
402
-
thrownewTypeError(`Passing a number "${embindRepr(value)}" from JS side to C/C++ side to an argument of type "${name}", which is outside the valid range [${minRange}, ${maxRange}]!`);
0 commit comments