From d5e09b280d855b73012d508623f02075ae99638f Mon Sep 17 00:00:00 2001 From: mathieudutour Date: Thu, 11 Apr 2019 16:15:01 -0400 Subject: [PATCH] fix parsing the stack --- src/catch-all-actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/catch-all-actions.js b/src/catch-all-actions.js index e4d5d79..f54749d 100644 --- a/src/catch-all-actions.js +++ b/src/catch-all-actions.js @@ -108,9 +108,9 @@ export function onLogFinish(context) { ) } else if ( String(castedValue.primitive) === 'Error' && - castedValue.value.stack && - options.sourcemaps + castedValue.value.stack ) { + castedValue.value = castedValue.value.mutableCopy() castedValue.value.stack = prepareStackTrace( castedValue.value.stack, options