@yuneta/gobj-js 7.26.17 → 7.26.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3284,7 +3284,7 @@ function set_remote_log_functions(remote_log_fn) {
3284
3284
  ************************************************************/
3285
3285
  function log_stringify(v) {
3286
3286
  try {
3287
- return JSON.stringify(v);
3287
+ return JSON.stringify(v, (k, x) => typeof x === "bigint" ? x.toString() : x);
3288
3288
  } catch (e) {
3289
3289
  try {
3290
3290
  return String(v);
@@ -3336,13 +3336,18 @@ function format_log(format) {
3336
3336
  } else output = args.map((arg) => typeof arg === "object" ? log_stringify(arg) : log_string(arg)).join(" ");
3337
3337
  return output;
3338
3338
  }
3339
+ var __in_log_function__ = false;
3339
3340
  function call_log_function(fn, ...args) {
3341
+ if (__in_log_function__) return;
3342
+ __in_log_function__ = true;
3340
3343
  try {
3341
3344
  fn(...args);
3342
3345
  } catch (e) {
3343
3346
  try {
3344
3347
  _console.error("a log function threw:", e);
3345
3348
  } catch (e2) {}
3349
+ } finally {
3350
+ __in_log_function__ = false;
3346
3351
  }
3347
3352
  }
3348
3353
  function log_error(format, ...args) {