Skip to content

Commit 6bacb0d

Browse files
committed
Transform error messages
1 parent 7adc5a9 commit 6bacb0d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/polyfill.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
'use strict';
2020

21+
var format = require('@stdlib/error-tools-fmtprodmsg');
22+
2123
// TODO: write polyfill
2224

2325
// MAIN //
@@ -28,10 +30,9 @@
2830
* @throws {Error} not implemented
2931
*/
3032
function polyfill() {
31-
throw new Error( 'not implemented' );
33+
throw new Error( format('00x00') );
3234
}
3335

34-
3536
// EXPORTS //
3637

3738
module.exports = polyfill;

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40-
"@stdlib/assert-has-int16array-support": "^0.2.1"
40+
"@stdlib/assert-has-int16array-support": "^0.2.1",
41+
"@stdlib/error-tools-fmtprodmsg": "^0.2.1"
4142
},
4243
"devDependencies": {
4344
"@stdlib/assert-has-property": "^0.2.1",
@@ -94,4 +95,4 @@
9495
"type": "opencollective",
9596
"url": "https://opencollective.com/stdlib"
9697
}
97-
}
98+
}

0 commit comments

Comments
 (0)