From 5caac44b4af09d5420b261f85e6b807f43e9c80d Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 7 Jun 2026 03:41:07 +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 0d55e2b..023535b 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('02P00') ); } - // EXPORTS // module.exports = polyfill; diff --git a/package.json b/package.json index f979fa7..898d1d7 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",