Browse Source

Merge pull request #461 from svaarala/error-fileline-comment-trivia

Trivial typofix in comment
pull/462/head
Sami Vaarala 9 years ago
parent
commit
225194bf72
  1. 3
      src/duk_error_augment.c

3
src/duk_error_augment.c

@ -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 {

Loading…
Cancel
Save