1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 04:02:31 +01:00

Fix brokenness.

This commit is contained in:
Kris Maglione
2015-02-23 13:01:52 -08:00
parent 1531910e19
commit 271c3a95c7
2 changed files with 3 additions and 3 deletions

View File

@@ -1742,10 +1742,10 @@ const Iter = Class("Iter", {
"Dear sir or madam,\n" +
"You are attempting to use this iterator object as a\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" +
"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");
},

View File

@@ -1486,7 +1486,7 @@ var DOM = Class("DOM", {
yield elem;
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;
}, {
css: css.join(", "),