1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-19 23:07:58 +01:00

Fix brokenness.

This commit is contained in:
Kris Maglione
2015-02-22 19:49:29 -08:00
parent 1ee5668cac
commit 65f2cda381
5 changed files with 15 additions and 11 deletions

View File

@@ -490,7 +490,7 @@ var JavaScript = Module("javascript", {
if (callable(func)) {
let [, prefix, args] = /^(function .*?)\((.*?)\)/.exec(Function.prototype.toString.call(func));
let n = this._get(i).comma.length;
args = template.map(Iterator(args.split(", ")),
args = template.map(args.split(", ").entries(),
([i, arg]) => ["span", { highlight: i == n ? "Filter" : "" }, arg],
",\u00a0");
this.context.message = ["", prefix + "(", args, ")"];