Skip to content

Commit a1eaf1d

Browse files
committed
Transform error messages
1 parent d0cb18f commit a1eaf1d

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('02R00') );
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-uint32array-support": "^0.2.2"
40+
"@stdlib/assert-has-uint32array-support": "^0.2.2",
41+
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
4142
},
4243
"devDependencies": {
4344
"@stdlib/assert-has-property": "^0.2.2",
@@ -95,4 +96,4 @@
9596
"type": "opencollective",
9697
"url": "https://opencollective.com/stdlib"
9798
}
98-
}
99+
}

0 commit comments

Comments
 (0)