diff --git a/resources/idlharness.js b/resources/idlharness.js index 4f8ec0d1a66335..d01da49c2d5895 100644 --- a/resources/idlharness.js +++ b/resources/idlharness.js @@ -2749,7 +2749,7 @@ IdlInterface.prototype.test_object = function(desc) var expected_typeof; if (this.name == "HTMLAllCollection") { - // Willful violation of JS. :( + // Result of [[IsHTMLDDA]] slot expected_typeof = "undefined"; } else if (this.members.some(function(member) { return member.legacycaller; })) { @@ -2922,7 +2922,7 @@ IdlInterface.prototype.test_interface_of = function(desc, obj, exception, expect { if (this.name == "Document" && member.name == "all") { - // Willful violation of JS :( + // Result of [[IsHTMLDDA]] slot assert_equals(typeof property, "undefined"); } else diff --git a/resources/testharness.js b/resources/testharness.js index 8d3b3e9dd6bf2a..63883e15504d78 100644 --- a/resources/testharness.js +++ b/resources/testharness.js @@ -1484,7 +1484,7 @@ policies and contribution forms [3]. return function (object, property_name, description) { assert(typeof object === "object" || typeof object === "function" || - // Willful violation of JS. :( + // Or has [[IsHTMLDDA]] slot String(object) === "[object HTMLAllCollection]", name, description, "provided value is not an object");