mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 21:04:12 +01:00
Fix brokenness.
This commit is contained in:
@@ -1742,10 +1742,10 @@ const Iter = Class("Iter", {
|
|||||||
"Dear sir or madam,\n" +
|
"Dear sir or madam,\n" +
|
||||||
"You are attempting to use this iterator object as a\n" +
|
"You are attempting to use this iterator object as a\n" +
|
||||||
"deprecated, pre-ES6 iterator, which is known to cause\n" +
|
"deprecated, pre-ES6 iterator, which is known to cause\n" +
|
||||||
"major problems. Please use it in a for-of loop instead.\n" +
|
"major problems. Please use it in a for-of loop instead.\n\n" +
|
||||||
"Since I don't know how far back in the call chain you\n" +
|
"Since I don't know how far back in the call chain you\n" +
|
||||||
"originate, I'm just going to give you an entire stack.\n" +
|
"originate, I'm just going to give you an entire stack.\n" +
|
||||||
"Here you go:\n" + Error().stack);
|
"Here you go:\n\n" + Error().stack);
|
||||||
|
|
||||||
throw Error("Iter object used as a pre-ES6 iterator");
|
throw Error("Iter object used as a pre-ES6 iterator");
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1486,7 +1486,7 @@ var DOM = Class("DOM", {
|
|||||||
yield elem;
|
yield elem;
|
||||||
|
|
||||||
if (matcher.css)
|
if (matcher.css)
|
||||||
for (let [, elem] of iter(util.withProperErrors("querySelectorAll", node, matcher.css)))
|
for (let elem of util.withProperErrors("querySelectorAll", node, matcher.css))
|
||||||
yield elem;
|
yield elem;
|
||||||
}, {
|
}, {
|
||||||
css: css.join(", "),
|
css: css.join(", "),
|
||||||
|
|||||||
Reference in New Issue
Block a user