Skip to content

Commit

Permalink
Bug 1623924 [wpt PR 22359] - XHR/CSS/Compression: use Wasm to get at …
Browse files Browse the repository at this point in the history
…a SharedArrayBuffer instancd, a=testonly

Automatic update from web-platform-tests
XHR/CSS/Compression: use Wasm to get at a SharedArrayBuffer instance

For web-platform-tests/wpt#22358.
--

wpt-commits: c8d8f8e2d426e71c11f86512fadd5d8744413c13
wpt-pr: 22359

UltraBlame original commit: 5cd0a8d5e1661ea051b6cb61885f80affcb93701
  • Loading branch information
marco-c committed Apr 1, 2020
1 parent 3f1d8f3 commit f5ebdb9
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,24 @@ value
{
return
new
SharedArrayBuffer
WebAssembly
.
Memory
(
{
shared
:
true
initial
:
1
maximum
:
1
}
)
.
buffer
;
}
}
Expand All @@ -100,9 +115,24 @@ new
Uint8Array
(
new
SharedArrayBuffer
WebAssembly
.
Memory
(
{
shared
:
true
initial
:
1
maximum
:
1
}
)
.
buffer
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,24 @@ value
{
return
new
SharedArrayBuffer
WebAssembly
.
Memory
(
{
shared
:
true
initial
:
1
maximum
:
1
}
)
.
buffer
;
}
}
Expand All @@ -100,9 +115,24 @@ new
Uint8Array
(
new
SharedArrayBuffer
WebAssembly
.
Memory
(
{
shared
:
true
initial
:
1
maximum
:
1
}
)
.
buffer
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,16 +267,55 @@
layoutNextFragment
(
{
/
/
See
https
:
/
/
github
.
com
/
whatwg
/
html
/
issues
/
5380
for
why
not
new
SharedArrayBuffer
(
)
data
:
{
sab
:
new
SharedArrayBuffer
WebAssembly
.
Memory
(
4
{
shared
:
true
initial
:
1
maximum
:
1
}
)
.
buffer
}
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,31 @@
)
)
;
/
/
See
https
:
/
/
github
.
com
/
whatwg
/
html
/
issues
/
5380
for
why
not
new
SharedArrayBuffer
(
)
return
{
autoBlockSize
Expand All @@ -288,10 +313,24 @@
sab
:
new
SharedArrayBuffer
WebAssembly
.
Memory
(
4
{
shared
:
true
initial
:
1
maximum
:
1
}
)
.
buffer
}
}
;
Expand Down
42 changes: 36 additions & 6 deletions testing/web-platform/tests/xhr/send-data-sharedarraybuffer.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,36 @@ test
=
>
{
var
const
xhr
=
new
XMLHttpRequest
(
)
;
var
const
buf
=
new
SharedArrayBuffer
WebAssembly
.
Memory
(
{
shared
:
true
initial
:
1
maximum
:
1
}
)
.
buffer
;
xhr
.
Expand Down Expand Up @@ -112,15 +127,15 @@ test
=
>
{
var
const
xhr
=
new
XMLHttpRequest
(
)
;
var
const
arr
=
new
Expand All @@ -130,9 +145,24 @@ type
]
(
new
SharedArrayBuffer
WebAssembly
.
Memory
(
{
shared
:
true
initial
:
1
maximum
:
1
}
)
.
buffer
)
;
xhr
Expand Down

0 comments on commit f5ebdb9

Please sign in to comment.