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