forked from mirrors/gecko-dev
Bug 1613867 - Enable ESLint on testing/xpcshell/moz-http2/ (automatic changes). r=dragana
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D62016 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
90a395b2ab
commit
389bc795fe
2 changed files with 669 additions and 601 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
function sendBackResponse(evalResult, e) {
|
function sendBackResponse(evalResult, e) {
|
||||||
const output = { result: evalResult, error: "", errorStack: ""};
|
const output = { result: evalResult, error: "", errorStack: "" };
|
||||||
if (e) {
|
if (e) {
|
||||||
output.error = e.toString();
|
output.error = e.toString();
|
||||||
output.errorStack = e.stack;
|
output.errorStack = e.stack;
|
||||||
|
|
@ -7,7 +7,7 @@ function sendBackResponse(evalResult, e) {
|
||||||
process.send(output);
|
process.send(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
process.on('message', (msg) => {
|
process.on("message", msg => {
|
||||||
const code = msg.code;
|
const code = msg.code;
|
||||||
let evalResult = null;
|
let evalResult = null;
|
||||||
try {
|
try {
|
||||||
|
|
@ -22,5 +22,5 @@ process.on('message', (msg) => {
|
||||||
sendBackResponse(undefined, e);
|
sendBackResponse(undefined, e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sendBackResponse(evalResult)
|
sendBackResponse(evalResult);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue