|
|
@ -420,14 +420,13 @@ DUK_LOCAL void duk__err_augment_builtin_create(duk_hthread *thr, duk_hthread *th |
|
|
|
DUK_ASSERT(obj != NULL); |
|
|
|
|
|
|
|
DUK_UNREF(obj); /* unreferenced w/o tracebacks */ |
|
|
|
DUK_UNREF(ctx); /* unreferenced w/ asserts */ |
|
|
|
DUK_UNREF(ctx); /* unreferenced w/o asserts */ |
|
|
|
|
|
|
|
#if defined(DUK_USE_TRACEBACKS) |
|
|
|
/* If tracebacks are enabled, the '_Tracedata' property is the only
|
|
|
|
* thing we need: 'fileName' and 'lineNumber' are virtual properties |
|
|
|
* which use '_Tracedata'. |
|
|
|
*/ |
|
|
|
|
|
|
|
if (duk_hobject_hasprop_raw(thr, obj, DUK_HTHREAD_STRING_INT_TRACEDATA(thr))) { |
|
|
|
DUK_DDD(DUK_DDDPRINT("error value already has a '_Tracedata' property, not modifying it")); |
|
|
|
} else { |
|
|
|