-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: parse SharedArrayBuffer and validate AllowShared (#747)
* feat: parse SharedArrayBuffer and validate AllowShared * Update README.md * more test * Update type.js
- Loading branch information
Showing
11 changed files
with
163 additions
and
2 deletions.
There are no files selected for viewing
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,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
/test/*/** text eol=lf | ||
* text=auto eol=lf |
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 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 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 @@ | ||
(migrate-allowshared) Validation error at line 3 in invalid-allowshared.webidl: | ||
foo([AllowShared] BufferSource source); | ||
^ `[AllowShared] BufferSource` is now replaced with AllowSharedBufferSource. |
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 @@ | ||
Syntax error at line 1 in sharedarraybuffer.webidl: | ||
interface SharedArrayBuffer {}; | ||
^ Missing name in interface |
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 @@ | ||
[Exposed=Window] | ||
interface Foo { | ||
undefined foo([AllowShared] BufferSource source); | ||
}; |
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 @@ | ||
interface SharedArrayBuffer {}; |
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,89 @@ | ||
[ | ||
{ | ||
"type": "interface", | ||
"name": "Foo", | ||
"inheritance": null, | ||
"members": [ | ||
{ | ||
"type": "operation", | ||
"name": "foo", | ||
"idlType": { | ||
"type": "return-type", | ||
"extAttrs": [], | ||
"generic": "", | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "undefined" | ||
}, | ||
"arguments": [ | ||
{ | ||
"type": "argument", | ||
"name": "buffer", | ||
"extAttrs": [], | ||
"idlType": { | ||
"type": "argument-type", | ||
"extAttrs": [], | ||
"generic": "", | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "SharedArrayBuffer" | ||
}, | ||
"default": null, | ||
"optional": false, | ||
"variadic": false | ||
} | ||
], | ||
"extAttrs": [], | ||
"special": "" | ||
}, | ||
{ | ||
"type": "operation", | ||
"name": "foo", | ||
"idlType": { | ||
"type": "return-type", | ||
"extAttrs": [], | ||
"generic": "", | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "undefined" | ||
}, | ||
"arguments": [ | ||
{ | ||
"type": "argument", | ||
"name": "source", | ||
"extAttrs": [], | ||
"idlType": { | ||
"type": "argument-type", | ||
"extAttrs": [], | ||
"generic": "", | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "AllowSharedBufferSource" | ||
}, | ||
"default": null, | ||
"optional": false, | ||
"variadic": false | ||
} | ||
], | ||
"extAttrs": [], | ||
"special": "" | ||
} | ||
], | ||
"extAttrs": [ | ||
{ | ||
"type": "extended-attribute", | ||
"name": "Exposed", | ||
"rhs": { | ||
"type": "identifier", | ||
"value": "Window" | ||
}, | ||
"arguments": [] | ||
} | ||
], | ||
"partial": false | ||
}, | ||
{ | ||
"type": "eof", | ||
"value": "" | ||
} | ||
] |
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,5 @@ | ||
[Exposed=Window] | ||
interface Foo { | ||
undefined foo(SharedArrayBuffer buffer); | ||
undefined foo(AllowSharedBufferSource source); | ||
}; |