Skip to content

Commit bd65995

Browse files
committed
Transform error messages
1 parent 4c37cf3 commit bd65995

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ function hasInt8ArraySupport() {
4848
try {
4949
arr = new GlobalInt8Array( [ 1, 3.14, -3.14, INT8_MAX+1 ] );
5050
bool = (
51+
(// truncation
5152
isInt8Array( arr ) &&
5253
arr[ 0 ] === 1 &&
5354
arr[ 1 ] === 3 && // truncation
54-
arr[ 2 ] === -3 && // truncation
55-
arr[ 3 ] === INT8_MIN // wrap around
55+
arr[ 2 ] === -3 && arr[ 3 ] === INT8_MIN) // wrap around
5656
);
5757
} catch ( err ) { // eslint-disable-line no-unused-vars
5858
bool = false;

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"@stdlib/cli-ctor": "^0.2.2",
4545
"@stdlib/constants-int8-max": "^0.2.2",
4646
"@stdlib/constants-int8-min": "^0.2.2",
47-
"@stdlib/fs-read-file": "^0.2.2"
47+
"@stdlib/fs-read-file": "^0.2.2",
48+
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
4849
},
4950
"devDependencies": {
5051
"@stdlib/array-int8": "^0.2.2",
@@ -98,4 +99,4 @@
9899
"type": "opencollective",
99100
"url": "https://opencollective.com/stdlib"
100101
}
101-
}
102+
}

0 commit comments

Comments
 (0)