bug 1492499: marionette: trim crlf off produced stack; r=automatedtester

The stack is joined with "\n" causing an extra carriage return line
feed to appear at the end of the string.

Depends on D8405

Differential Revision: https://phabricator.services.mozilla.com/D8406

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Tolfsen 2018-10-11 16:40:08 +00:00
parent b0d96c1178
commit fdfb04c5da

View File

@ -160,7 +160,8 @@ this.stack = function() {
let trace = new Error().stack;
let sa = trace.split("\n");
sa = sa.slice(1);
return "stacktrace:\n" + sa.join("\n");
let rv = "stacktrace:\n" + sa.join("\n");
return rv.trimEnd();
};
/**