@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.
@@ -3287,7 +3287,7 @@
3287
3287
  ************************************************************/
3288
3288
  function log_stringify(v) {
3289
3289
  try {
3290
- return JSON.stringify(v);
3290
+ return JSON.stringify(v, (k, x) => typeof x === "bigint" ? x.toString() : x);
3291
3291
  } catch (e) {
3292
3292
  try {
3293
3293
  return String(v);
@@ -3339,13 +3339,18 @@
3339
3339
  } else output = args.map((arg) => typeof arg === "object" ? log_stringify(arg) : log_string(arg)).join(" ");
3340
3340
  return output;
3341
3341
  }
3342
+ var __in_log_function__ = false;
3342
3343
  function call_log_function(fn, ...args) {
3344
+ if (__in_log_function__) return;
3345
+ __in_log_function__ = true;
3343
3346
  try {
3344
3347
  fn(...args);
3345
3348
  } catch (e) {
3346
3349
  try {
3347
3350
  _console.error("a log function threw:", e);
3348
3351
  } catch (e2) {}
3352
+ } finally {
3353
+ __in_log_function__ = false;
3349
3354
  }
3350
3355
  }
3351
3356
  function log_error(format, ...args) {