Bug 1452049 [wpt PR 10344] - Change a const in var in idlharness.js, a=testonly
authorAnthony Ramine <n.oxyde@gmail.com>
Mon, 09 Apr 2018 22:25:16 +0000
changeset 413724 544a05e734c21c9528ce99a92b9c065f45971d2f
parent 413723 412d812b4e67829a16d27879aa3177eae4e4a998
child 413725 e6c521e6fb27dea1b258618f74cac40d3729ba3e
push id102161
push userjames@hoppipolla.co.uk
push dateSun, 15 Apr 2018 09:10:16 +0000
treeherdermozilla-inbound@ebfad4be630d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1452049, 10344
milestone61.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 1452049 [wpt PR 10344] - Change a const in var in idlharness.js, a=testonly Automatic update from web-platform-testsMerge pull request #10344 from nox/var-gt-const Change a const in var in idlharness.js wpt-commits: b80da5dcd487fa46b68eb2ae2e3fcaac32c53427 wpt-pr: 10344 wpt-commits: b80da5dcd487fa46b68eb2ae2e3fcaac32c53427 wpt-pr: 10344
testing/web-platform/tests/resources/idlharness.js
--- a/testing/web-platform/tests/resources/idlharness.js
+++ b/testing/web-platform/tests/resources/idlharness.js
@@ -679,17 +679,17 @@ IdlArray.prototype.test = function()
             {
                 this.members[lhs].members.push(new IdlInterfaceMember(member));
             }.bind(this));
         }.bind(this));
     }
     this["includes"] = {};
 
     // Assert B defined for A : B
-    for (const member of Object.values(this.members).filter(m => m.base)) {
+    for (var member of Object.values(this.members).filter(m => m.base)) {
         const lhs = member.name;
         const rhs = member.base;
         if (!(rhs in this.members)) throw new IdlHarnessError(`${lhs} inherits ${rhs}, but ${rhs} is undefined.`);
         const lhs_is_interface = this.members[lhs] instanceof IdlInterface;
         const rhs_is_interface = this.members[rhs] instanceof IdlInterface;
         if (rhs_is_interface != lhs_is_interface) {
             if (!lhs_is_interface) throw new IdlHarnessError(`${lhs} inherits ${rhs}, but ${lhs} is not an interface.`);
             if (!rhs_is_interface) throw new IdlHarnessError(`${lhs} inherits ${rhs}, but ${rhs} is not an interface.`);