1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 17:22:26 +01:00

Remove straggling String#quote usage.

String#quote is no more.

Fixes :mkvimruntime.
This commit is contained in:
Doug Kearns
2015-05-14 03:02:30 +10:00
parent a9a97704f3
commit 07ce319763
4 changed files with 6 additions and 7 deletions

View File

@@ -390,7 +390,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
let quote = util.identity;
if (flags.has("q"))
quote = function quote(obj) typeof obj === "number" ? obj : String.quote(obj);
quote = function quote(obj) typeof obj === "number" ? obj : JSON.stringify(obj);
if (flags.has("e"))
quote = function quote(obj) "";
@@ -596,7 +596,6 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
/**
* Escapes quotes, newline and tab characters in *str*. The returned string
* is delimited by *delimiter* or " if *delimiter* is not specified.
* {@see String#quote}.
*
* @param {string} str
* @param {string} delimiter