Comparing version 4.0.0 to 4.1.0
@@ -198,3 +198,3 @@ (function() { | ||
all_ws(); | ||
types.push(type() || error("Error parsing generic type " + value)); | ||
types.push(type_with_extended_attributes() || error("Error parsing generic type " + value)); | ||
all_ws(); | ||
@@ -210,2 +210,5 @@ } | ||
} | ||
if (types[0].extAttrs) error("Record key cannot have extended attribute"); | ||
} else if (value === "Promise") { | ||
if (types[0].extAttrs) error("Promise type cannot have extended attribute"); | ||
} | ||
@@ -212,0 +215,0 @@ ret.idlType = types.length === 1 ? types[0] : types; |
{ | ||
"name": "webidl2", | ||
"description": "A WebIDL Parser", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Robin Berjon <robin@berjon.com> (https://berjon.com)", |
@@ -50,4 +50,30 @@ [ | ||
"extAttrs": [] | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "IterableThree", | ||
"partial": false, | ||
"members": [ | ||
{ | ||
"type": "iterable", | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "long", | ||
"extAttrs": [ | ||
{ | ||
"name": "XAttr", | ||
"arguments": null | ||
} | ||
] | ||
}, | ||
"extAttrs": [] | ||
} | ||
], | ||
"inheritance": null, | ||
"extAttrs": [] | ||
} | ||
] | ||
@@ -61,4 +61,46 @@ [ | ||
"extAttrs": [] | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "I", | ||
"partial": false, | ||
"members": [ | ||
{ | ||
"type": "maplike", | ||
"idlType": [ | ||
{ | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "DOMString", | ||
"extAttrs": [ | ||
{ | ||
"name": "XAttr2", | ||
"arguments": null | ||
} | ||
] | ||
}, | ||
{ | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "long", | ||
"extAttrs": [ | ||
{ | ||
"name": "XAttr3", | ||
"arguments": null | ||
} | ||
] | ||
} | ||
], | ||
"readonly": false, | ||
"extAttrs": [] | ||
} | ||
], | ||
"inheritance": null, | ||
"extAttrs": [] | ||
} | ||
] | ||
@@ -169,3 +169,53 @@ [ | ||
] | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "Bar", | ||
"partial": false, | ||
"members": [ | ||
{ | ||
"type": "operation", | ||
"getter": false, | ||
"setter": false, | ||
"creator": false, | ||
"deleter": false, | ||
"legacycaller": false, | ||
"static": false, | ||
"stringifier": false, | ||
"idlType": { | ||
"sequence": false, | ||
"generic": "record", | ||
"nullable": false, | ||
"union": false, | ||
"idlType": [ | ||
{ | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "DOMString" | ||
}, | ||
{ | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "float", | ||
"extAttrs": [ | ||
{ | ||
"name": "XAttr", | ||
"arguments": null | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"name": "bar", | ||
"arguments": [], | ||
"extAttrs": [] | ||
} | ||
], | ||
"inheritance": null, | ||
"extAttrs": [] | ||
} | ||
] |
@@ -106,3 +106,59 @@ [ | ||
"extAttrs": [] | ||
} | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "I", | ||
"partial": false, | ||
"members": [ | ||
{ | ||
"type": "operation", | ||
"getter": false, | ||
"setter": false, | ||
"creator": false, | ||
"deleter": false, | ||
"legacycaller": false, | ||
"static": false, | ||
"stringifier": false, | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "void" | ||
}, | ||
"name": "f1", | ||
"arguments": [ | ||
{ | ||
"optional": false, | ||
"variadic": false, | ||
"extAttrs": [], | ||
"idlType": { | ||
"sequence": true, | ||
"generic": "sequence", | ||
"nullable": false, | ||
"union": false, | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "long", | ||
"extAttrs": [ | ||
{ | ||
"name": "XAttr", | ||
"arguments": null | ||
} | ||
] | ||
} | ||
}, | ||
"name": "arg" | ||
} | ||
], | ||
"extAttrs": [] | ||
} | ||
], | ||
"inheritance": null, | ||
"extAttrs": [] | ||
} | ||
] |
@@ -43,4 +43,31 @@ [ | ||
"extAttrs": [] | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "SetLikeExt", | ||
"partial": false, | ||
"members": [ | ||
{ | ||
"type": "setlike", | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "long", | ||
"extAttrs": [ | ||
{ | ||
"name": "XAttr", | ||
"arguments": null | ||
} | ||
] | ||
}, | ||
"readonly": false, | ||
"extAttrs": [] | ||
} | ||
], | ||
"inheritance": null, | ||
"extAttrs": [] | ||
} | ||
] | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
861768
302
7122