@meta2d/core 1.1.8 → 1.1.9

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.
package/src/core.js CHANGED
@@ -371,7 +371,7 @@ export class Meta2d {
371
371
  e.fn = new Function('pen', 'params', 'context', fnJs);
372
372
  }
373
373
  catch (err) {
374
- console.error('[meta2d]: Error on make a function:', err);
374
+ console.error('[meta2d]: Error on make a function:', err, 'code:', e.value);
375
375
  }
376
376
  }
377
377
  e.fn?.(pen, params || e.params, { meta2d: this, eventName: e.name });
@@ -810,7 +810,7 @@ export class Meta2d {
810
810
  e.fn = new Function('pen', 'data', 'context', fnJs);
811
811
  }
812
812
  catch (err) {
813
- console.error('[meta2d]: Error on make a function:', err);
813
+ console.error('[meta2d]: Error on make a function:', err, 'code:', e.callback);
814
814
  }
815
815
  }
816
816
  e.fn?.(pen, data, { meta2d: this, e });
@@ -3666,7 +3666,7 @@ export class Meta2d {
3666
3666
  event.where.fn = new Function('pen', 'context', fnJs);
3667
3667
  }
3668
3668
  catch (err) {
3669
- console.error('Error: make function:', err);
3669
+ console.error('Error: make function:', err, 'code:', fnJs);
3670
3670
  }
3671
3671
  if (event.where.fn) {
3672
3672
  can = event.where.fn(pen, { meta2d: this });