[Pkg-mozext-commits] [greasemonkey] 18/26: Pass correct booleans to script parse().
David Prévot
taffit at moszumanska.debian.org
Thu Feb 25 02:27:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 21196c5bc1a34f23df0c1805d1e9c088359a5777
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Thu Feb 11 11:31:21 2016 -0500
Pass correct booleans to script parse().
Third parameter is now `aFailWhenMissing`, in case of the DownloadListener we do want to fail, i.e. only succeed when it is found. In case of _parseScriptFile() we want whatever we've got, don't fail at all.
Fixes #2360
---
modules/remoteScript.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/remoteScript.js b/modules/remoteScript.js
index d5d02d0..27f5844 100644
--- a/modules/remoteScript.js
+++ b/modules/remoteScript.js
@@ -115,7 +115,7 @@ DownloadListener.prototype = {
try {
source = converter.convertFromByteArray(this._data, this._data.length);
} catch (e) { }
- return this._remoteScript.parseScript(source, false);
+ return this._remoteScript.parseScript(source, true);
},
// nsIStreamListener
@@ -656,7 +656,7 @@ RemoteScript.prototype._parseScriptFile = function() {
if (!source) return null;
var script = null;
try {
- this.parseScript(source, true);
+ this.parseScript(source, false);
} catch (e) {
dump('RemoteScript._parseScriptFile: ' + e + '\n');
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list