Skip to content

Commit 4fb1fc1

Browse files
committed
Correct comments
1 parent c31879b commit 4fb1fc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/parameter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

rosidl_gen/templates/message.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{{??}}

0 commit comments

Comments
 (0)