Skip to content

Commit e3069a2

Browse files
committed
Transform error messages
1 parent a68e31b commit e3069a2

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('00l00') );
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-float32array-support": "^0.2.2"
40+
"@stdlib/assert-has-float32array-support": "^0.2.2",
41+
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
4142
},
4243
"devDependencies": {
4344
"@stdlib/assert-has-property": "^0.2.2",
@@ -92,4 +93,4 @@
9293
"type": "opencollective",
9394
"url": "https://opencollective.com/stdlib"
9495
}
95-
}
96+
}

0 commit comments

Comments
 (0)