mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 4333a1d2f109795547fc5e22ebfc8481fa649de7
This commit is contained in:
parent
728ebcc932
commit
8c46b67f8e
456 changed files with 10561 additions and 5108 deletions
|
@ -821,8 +821,15 @@ IdlArray.prototype.test = function()
|
|||
this.members[name].test();
|
||||
if (name in this.objects)
|
||||
{
|
||||
this.objects[name].forEach(function(str)
|
||||
const objects = this.objects[name];
|
||||
if (!objects || !Array.isArray(objects)) {
|
||||
throw new IdlHarnessError(`Invalid or empty objects for member ${name}`);
|
||||
}
|
||||
objects.forEach(function(str)
|
||||
{
|
||||
if (!this.members[name] || !(this.members[name] instanceof IdlInterface)) {
|
||||
throw new IdlHarnessError(`Invalid object member name ${name}`);
|
||||
}
|
||||
this.members[name].test_object(str);
|
||||
}.bind(this));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue