DOM4: Add support for rest parameters to DOMTokenList
[WebKit.git] / Source / WebCore / bindings / scripts / IDLParser.pm
index bb8a0f0..19fb649 100644 (file)
@@ -1246,7 +1246,7 @@ sub parseOptionalOrRequiredArgument
         # Remove all "?" if exists, e.g. "object?[]?" -> "object[]".
         $type =~ s/\?//g;
         $paramDataNode->type($type);
-        $self->parseEllipsis();
+        $paramDataNode->isVariadic($self->parseEllipsis());
         $paramDataNode->name($self->parseArgumentName());
         return $paramDataNode;
     }