Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make URLSearchParams iterable #13022 #13077

Closed
wants to merge 8 commits into from

modify tests for for-in

  • Loading branch information
yoyo930021 committed Aug 27, 2016
commit 01d4888d70a781b410ed7c9c25bdb2daa75c32e0
@@ -23,6 +23,19 @@
}
});
}, "ForEach Check");

test(function(){
let a=new URL("http://a.b/c?a=1&b=2&c=3&d=4");
let b = a.searchParams;
var c = [];
for (i of b) {
a.search="x=1&y=2&z=3";

This comment has been minimized.

@emilio

emilio Sep 21, 2016

Member

nit: Space before and after equals here.

c.push(i);
}
assert_array_equals(c[0],["a","1"]);
assert_array_equals(c[1],["y","2"]);
assert_array_equals(c[2],["z","3"]);
}, "For-of Check");
</script>
</head>
</html>
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.