From d83c6490abeb6821c939b06ce4b56781cd0f1145 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Thu, 19 Apr 2018 04:51:42 +0800 Subject: [PATCH] fix corner case in `strip_func_ids()` (#3090) --- test/sandbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1