From 726576d3144280203aa890145b92a49d061a1845 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 19 Apr 2017 14:10:52 -0700 Subject: [PATCH] Bug 1356810: Follow-up: Fix SDK worker tests. a=merge MozReview-Commit-ID: 8ObX3OKozCF --HG-- extra : source : bf8468e259dce509bfe0c4cc51874a0797932e36 --- addon-sdk/source/lib/sdk/loader/sandbox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addon-sdk/source/lib/sdk/loader/sandbox.js b/addon-sdk/source/lib/sdk/loader/sandbox.js index 791dbc086c15..0fc3e7759357 100644 --- a/addon-sdk/source/lib/sdk/loader/sandbox.js +++ b/addon-sdk/source/lib/sdk/loader/sandbox.js @@ -63,7 +63,9 @@ function load(sandbox, uri) { return evaluate(sandbox, decodeURIComponent(source), '1.8', uri, 0); } else { - return scriptLoader.loadSubScript(uri, sandbox, 'UTF-8'); + return scriptLoader.loadSubScriptWithOptions(uri, {target: sandbox, + charset: 'UTF-8', + wantReturnValue: true}); } } exports.load = load;