From: Alex Lam S.L Date: Wed, 18 Apr 2018 20:51:42 +0000 (+0800) Subject: fix corner case in `strip_func_ids()` (#3090) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d83c6490abeb6821c939b06ce4b56781cd0f1145;p=UglifyJS.git fix corner case in `strip_func_ids()` (#3090) --- diff --git a/test/sandbox.js b/test/sandbox.js index 13cfe088..426ac1fc 100644 --- a/test/sandbox.js +++ b/test/sandbox.js @@ -40,7 +40,7 @@ function safe_log(arg, level) { } function strip_func_ids(text) { - return text.toString().replace(/F[0-9]{6}N/g, "N>"); + return ("" + text).replace(/F[0-9]{6}N/g, "N>"); } var context;