File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ class Range {
541541
542542 /**
543543 * Determine if a value is within this range.
544- * A TypeError is thrown when value is not a number.
544+ * A TypeError is thrown when value is not a number or bigint .
545545 * Subclasses should override and call this method for basic type checking.
546546 *
547547 * @param {number|bigint } value - The number or bigint to check.
Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ class {{=objectWrapper}} {
576576 this._wrapperFields.{{=field.name}}.data = value;
577577 {{?? isBigInt(field.type)}}
578578 if (typeof value !== " bigint" ) {
579- throw new TypeError('int64/uint64 must be type of bigint');
579+ throw new TypeError('{{=field.name}} must be type of bigint');
580580 }
581581 this._refObject.{{=field.name}} = value.toString();
582582 {{??}}
You can’t perform that action at this time.
0 commit comments