aboutsummaryrefslogtreecommitdiff
path: root/test/sandbox.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-04-19 04:51:42 +0800
committerGitHub <noreply@github.com>2018-04-19 04:51:42 +0800
commitd83c6490abeb6821c939b06ce4b56781cd0f1145 (patch)
tree12f704e4c38f1220f4116485db85fc08ecf01ce7 /test/sandbox.js
parent7362f579666194aed000005c956f2e0e83c9a87d (diff)
downloadtracifyjs-d83c6490abeb6821c939b06ce4b56781cd0f1145.tar.gz
tracifyjs-d83c6490abeb6821c939b06ce4b56781cd0f1145.zip
fix corner case in `strip_func_ids()` (#3090)
Diffstat (limited to 'test/sandbox.js')
-rw-r--r--test/sandbox.js2
1 files changed, 1 insertions, 1 deletions
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, "<F<>N>");
+ return ("" + text).replace(/F[0-9]{6}N/g, "<F<>N>");
}
var context;