Bug 1299593 - Use Symbol.iterator instead of values() to get Iterator prototype. r=Ms2ger
authorTom Schuster <evilpies@gmail.com>
Fri, 23 Sep 2016 13:49:01 +0200
changeset 315158 4ee2dc9144c82ddc8fd765bce837b0943dce6dac
parent 315157 13434fa439d1764dcbb1ac5799fa3b4708243d10
child 315159 fb8ffc4a9c9979c63ee998e0d41a56fd5c1100db
push id32563
push userihsiao@mozilla.com
push dateMon, 26 Sep 2016 11:18:33 +0000
treeherderautoland@eb840c87b5fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger
bugs1299593
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1299593 - Use Symbol.iterator instead of values() to get Iterator prototype. r=Ms2ger
testing/web-platform/tests/fetch/api/headers/headers-basic.html
--- a/testing/web-platform/tests/fetch/api/headers/headers-basic.html
+++ b/testing/web-platform/tests/fetch/api/headers/headers-basic.html
@@ -122,17 +122,17 @@
       var sortedHeaderDict = {};
       var headerValues = [];
       var sortedHeaderKeys = Object.keys(headerEntriesDict).map(function(value) {
         sortedHeaderDict[value.toLowerCase()] = headerEntriesDict[value];
         headerValues.push(headerEntriesDict[value]);
         return value.toLowerCase();
       }).sort();
 
-      var iteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([].values()));
+      var iteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));
       function checkIteratorProperties(iterator) {
         var prototype = Object.getPrototypeOf(iterator);
         assert_equals(Object.getPrototypeOf(prototype), iteratorPrototype);
 
         var descriptor = Object.getOwnPropertyDescriptor(prototype, "next");
         assert_true(descriptor.configurable, "configurable");
         assert_true(descriptor.enumerable, "enumerable");
         assert_true(descriptor.writable, "writable");