From 3d48c0d68bd8c091990d55e80b5e0b1b74cc295e Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sat, 30 Jul 2011 05:35:23 -0400 Subject: [PATCH] Assert mode.length == 1 in hints.addMode. --- common/content/hints.js | 1 + 1 file changed, 1 insertion(+) diff --git a/common/content/hints.js b/common/content/hints.js index 84ec41a4..c6bb461e 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -787,6 +787,7 @@ var Hints = Module("hints", { * @optional */ addMode: function (mode, prompt, action, tags) { + dactyl.assert(mode.length == 1); arguments[1] = UTF8(prompt); this.modes[mode] = Hints.Mode.apply(Hints.Mode, arguments); },