From 065ed16bc74284b562e0534dfdc0689953837e61 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 24 Jul 2026 03:25:29 +0000 Subject: [PATCH] Transform error messages --- lib/polyfill.js | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/polyfill.js b/lib/polyfill.js index cd3f2fb..d2cc855 100644 --- a/lib/polyfill.js +++ b/lib/polyfill.js @@ -18,6 +18,8 @@ 'use strict'; +var format = require('@stdlib/error-tools-fmtprodmsg'); + // TODO: write polyfill // MAIN // @@ -28,10 +30,9 @@ * @throws {Error} not implemented */ function polyfill() { - throw new Error( 'not implemented' ); + throw new Error( format('01100') ); } - // EXPORTS // module.exports = polyfill; diff --git a/package.json b/package.json index 7dc8026..bc7c2fb 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@stdlib/math-base-special-round": "^0.3.1", "@stdlib/random-base-randi": "^0.2.3", "@stdlib/random-base-randu": "^0.2.3", - "@stdlib/string-format": "^0.2.3", + "@stdlib/error-tools-fmtprodmsg": "^0.2.3", "@stdlib/symbol-iterator": "^0.2.3", "proxyquire": "^2.0.0", "tape": "git+https://github.com/kgryte/tape.git#fix/globby",