mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-06 17:55:45 +01:00
Fix more temporal dead zone fallout in contexts.bindMacro.
Fixes issue #1230.
This commit is contained in:
@@ -512,10 +512,11 @@ var Contexts = Module("contexts", {
|
|||||||
|
|
||||||
let rhs = args.literalArg;
|
let rhs = args.literalArg;
|
||||||
let type = ["-builtin", "-ex", "-javascript", "-keys"].reduce((a, b) => args[b] ? b : a, default_);
|
let type = ["-builtin", "-ex", "-javascript", "-keys"].reduce((a, b) => args[b] ? b : a, default_);
|
||||||
|
let noremap = false;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "-builtin":
|
case "-builtin":
|
||||||
let noremap = true;
|
noremap = true;
|
||||||
/* fallthrough */
|
/* fallthrough */
|
||||||
case "-keys":
|
case "-keys":
|
||||||
let silent = args["-silent"];
|
let silent = args["-silent"];
|
||||||
|
|||||||
Reference in New Issue
Block a user