Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commit138fe08

Browse files
committed
Transform error messages
1 parent3a255ef commit138fe08

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎lib/polyfill.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
'use strict';
2020

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

2325
// MAIN //
@@ -28,10 +30,9 @@
2830
*@throws {Error} not implemented
2931
*/
3032
functionpolyfill(){
31-
thrownewError('not implemented');
33+
thrownewError(format('00N00'));
3234
}
3335

34-
3536
// EXPORTS //
3637

3738
module.exports=polyfill;

‎package.json‎

Lines changed: 3 additions & 2 deletions
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-arraybuffer-support":"^0.2.2"
40+
"@stdlib/assert-has-arraybuffer-support":"^0.2.2",
41+
"@stdlib/error-tools-fmtprodmsg":"^0.2.2"
4142
},
4243
"devDependencies": {
4344
"@stdlib/array-float64":"^0.2.2",
@@ -92,4 +93,4 @@
9293
"type":"opencollective",
9394
"url":"https://opencollective.com/stdlib"
9495
}
95-
}
96+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp