From 2902ba582e3a4c2788d40ea1b228be0629b9b520 Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Thu, 19 Apr 2018 04:21:19 +0800 Subject: [PATCH] fix corner case in `strip_func_ids()` --- 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;