Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ee01fcf

Browse filesBrowse files
committed
Transform error messages
1 parent a591df7 commit ee01fcf
Copy full SHA for ee01fcf

File tree

2 files changed

+6
-4
lines changed
Filter options

2 files changed

+6
-4
lines changed

‎lib/polyfill.js

Copy file name to clipboardExpand all lines: 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('00n00') );
3234
}
3335

34-
3536
// EXPORTS //
3637

3738
module.exports = polyfill;

‎package.json

Copy file name to clipboardExpand all lines: 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-float64array-support": "^0.2.2"
40+
"@stdlib/assert-has-float64array-support": "^0.2.2",
41+
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
4142
},
4243
"devDependencies": {
4344
"@stdlib/assert-has-property": "^0.2.2",
@@ -91,4 +92,4 @@
9192
"type": "opencollective",
9293
"url": "https://opencollective.com/stdlib"
9394
}
94-
}
95+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.