Bug 1299593 - Use Symbol.iterator instead of values() to get Iterator prototype. r=Ms2ger, a=test-only
authorTom Schuster <evilpies@gmail.com>
Fri, 23 Sep 2016 13:49:01 +0200
changeset 355714 89ef72d72bdadd530ca150def7a83792bb3d429b
parent 355713 f12c066b00479cb299d5701127e2e64155eb73a7
child 355715 47f67174f70d54b58f8ed1784136c0a57968eadf
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger, test-only
bugs1299593
milestone51.0a2
Bug 1299593 - Use Symbol.iterator instead of values() to get Iterator prototype. r=Ms2ger, a=test-only
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");