-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'resources/webidl2/' changes from bd216bcd55..88c5c5b6bb (#5665
) 88c5c5b6bb chore(package): bump version 8b3bc38a24 chore(package): bump version c64fe13a42 chore(package): update deps a0bccdf485 fix "Trailing comma in extended attribute" error (#63) 62633a1025 Remove support for MapClass (no longer valid in WebIDL) (#62) 3a7d1bbe3e Merge pull request #61 from w3c/annotated_types 49ea372ba3 Fix spaces in JSON output for updated test 7488ee661f docs(README): fix markdown. 5530e9fecc Adapt test to support for annotated types a387b679ca Add support for annotated types ffe9400aba Merge pull request #58 from SaschaNaz/namespace 9a154bb963 implement namespace 830d19191f chore(package): bump version e5771f11e8 Revert "style: use U.S. English" 8c712c9cb8 chore(package): bump version 8ee9a85ad8 style: use U.S. English bc7b7c6897 style(lib): beautify code 96699646e1 chore(package): bump version 86ea904cbf chore(package): update dependencies 44d7b22851 Merge pull request #57 from TimothyGu/develop 0b5300ec76 Make writer less strict about generic idlType's type 064622bf59 Add support for records fcb88fb1ac Merge pull request #50 from w3c/refactor a23527043e refactor(webidl.js): move WebIDLParseError c64e97c3b8 Merge pull request #49 from w3c/amd_compat d1e704bd40 feat(lib): add AMD export support (closes #48) 5458831df8 style(writer.js): fix whitespace 481c29427a style(webidl2.js): fix whitespace ed24e286ee chore(package): update deps 2668a8be5f docs(README): fixup markdown highlighting 9df3430244 Merge pull request #47 from mkwtys/fix-default ec61c0a096 Merge branch 'halton-replace_expect' into develop fb59b13c2c Really be deterministic 128d7335bb Remove reliance on undeterministic object key order 7bf2df2276 Confirm support for union in typedef 1b5b83438e Remove test of now invalid nested typdef 2d8cd93bd4 Update location of expect.js library 1ed22de9b5 Correct jsondiffpatch location. a2e2f8e902 Bump microtime to 2.1.1 23b63723e9 Expand writer support 9cc1281a1c Accept wider (but still incomplete) set of allowed syntax for extended attributes. cb04f7777c Identifier allow `-` d9b4989425 Merge pull request #39 from markandrus/develop 1ab320df8d Merge pull request #37 from artillery/develop 524000bfd6 Merge pull request #31 from othree/in-draft 99127088c2 Fix `"default": undefined` 191685b05f Really be deterministic 300b1e0fae Remove reliance on undeterministic object key order 61c8e65035 Confirm support for union in typedef f0cd831c6c Remove test of now invalid nested typdef 77b5e3df87 Update location of expect.js library f84b8e684c Merge pull request #44 from halton/fix_jsondiffpatch b52117cf05 Merge pull request #43 from halton/bump_microtime 65382bf16b Replace expect.js with expct be6c2e21e9 Correct jsondiffpatch location. 0b0fa3e92d Bump microtime to 2.1.1 e470735423 Expand writer support 9e2ccfc940 Accept wider (but still incomplete) set of allowed syntax for extended attributes. 989591f675 Allow trailing comma in enum 9385d07a54 Identifier allow `-` git-subtree-dir: resources/webidl2 git-subtree-split: 88c5c5b6bb675d0d95ae3ec4db3258768d0c8fc0
- Loading branch information
Showing
26 changed files
with
2,287 additions
and
1,945 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"name": "webidl2", | ||
"description": "A WebIDL Parser", | ||
"version": "2.0.11", | ||
"version": "2.4.0", | ||
"author": "Robin Berjon <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"mocha": "2.2.5", | ||
"expect.js": "0.3.1", | ||
"mocha": "3.2.0", | ||
"expect": "1.20.2", | ||
"underscore": "1.8.3", | ||
"jsondiffpatch": "0.1.31", | ||
"jsondiffpatch": "0.2.4", | ||
"benchmark": "*", | ||
"microtime": "1.4.2" | ||
"microtime": "2.1.3" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
interface Foo { | ||
void foo(record<octet, any> param); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"message": "Record key must be DOMString, USVString, or ByteString", | ||
"line": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Extracted from Web IDL editors draft March 27 2017 | ||
namespace VectorUtils { | ||
readonly attribute Vector unit; | ||
double dotProduct(Vector x, Vector y); | ||
Vector crossProduct(Vector x, Vector y); | ||
}; | ||
|
||
partial namespace SomeNamespace { | ||
/* namespace_members... */ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Constructor(record<USVString, USVString> init)] | ||
interface Foo { | ||
void foo(sequence<record<ByteString, any>> param); | ||
record<DOMString, (float or DOMString)?> bar(); | ||
|
||
// Make sure record can still be registered as a type. | ||
record baz(); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
typedef (ImageData or | ||
HTMLImageElement or | ||
HTMLCanvasElement or | ||
HTMLVideoElement) TexImageSource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
interface Union { | ||
attribute (float or (Date or Event) or (Node or DOMString)?) test; | ||
attribute ([EnforceRange] long or Date) test2; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
[ | ||
{ | ||
"type": "namespace", | ||
"name": "VectorUtils", | ||
"partial": false, | ||
"members": [ | ||
{ | ||
"type": "attribute", | ||
"static": false, | ||
"stringifier": false, | ||
"inherit": false, | ||
"readonly": true, | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"array": false, | ||
"union": false, | ||
"idlType": "Vector" | ||
}, | ||
"name": "unit", | ||
"extAttrs": [] | ||
}, | ||
{ | ||
"type": "operation", | ||
"getter": false, | ||
"setter": false, | ||
"creator": false, | ||
"deleter": false, | ||
"legacycaller": false, | ||
"static": false, | ||
"stringifier": false, | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"array": false, | ||
"union": false, | ||
"idlType": "double" | ||
}, | ||
"name": "dotProduct", | ||
"arguments": [ | ||
{ | ||
"optional": false, | ||
"variadic": false, | ||
"extAttrs": [], | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"array": false, | ||
"union": false, | ||
"idlType": "Vector" | ||
}, | ||
"name": "x" | ||
}, | ||
{ | ||
"optional": false, | ||
"variadic": false, | ||
"extAttrs": [], | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"array": false, | ||
"union": false, | ||
"idlType": "Vector" | ||
}, | ||
"name": "y" | ||
} | ||
], | ||
"extAttrs": [] | ||
}, | ||
{ | ||
"type": "operation", | ||
"getter": false, | ||
"setter": false, | ||
"creator": false, | ||
"deleter": false, | ||
"legacycaller": false, | ||
"static": false, | ||
"stringifier": false, | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"array": false, | ||
"union": false, | ||
"idlType": "Vector" | ||
}, | ||
"name": "crossProduct", | ||
"arguments": [ | ||
{ | ||
"optional": false, | ||
"variadic": false, | ||
"extAttrs": [], | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"array": false, | ||
"union": false, | ||
"idlType": "Vector" | ||
}, | ||
"name": "x" | ||
}, | ||
{ | ||
"optional": false, | ||
"variadic": false, | ||
"extAttrs": [], | ||
"idlType": { | ||
"sequence": false, | ||
"generic": null, | ||
"nullable": false, | ||
"array": false, | ||
"union": false, | ||
"idlType": "Vector" | ||
}, | ||
"name": "y" | ||
} | ||
], | ||
"extAttrs": [] | ||
} | ||
], | ||
"extAttrs": [] | ||
}, | ||
{ | ||
"type": "namespace", | ||
"name": "SomeNamespace", | ||
"partial": true, | ||
"members": [], | ||
"extAttrs": [] | ||
} | ||
] |
Oops, something went wrong.