mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision eb12303bec1d47bbe91ebf011d17d81ec6fce68d
This commit is contained in:
parent
6ca767d7f9
commit
916ba6ef4d
467 changed files with 6716 additions and 1478 deletions
|
@ -35,7 +35,8 @@ registerLayout('parent', class {
|
|||
|
||||
try {
|
||||
childFragment = await child.layoutNextFragment({
|
||||
data: { sab: new SharedArrayBuffer(4) }
|
||||
// See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()`
|
||||
data: { sab: new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer }
|
||||
});
|
||||
} catch(e) {
|
||||
// Success! The structured cloning algorithm should have thrown an error.
|
||||
|
|
|
@ -33,7 +33,8 @@ registerLayout('fallback-sab', class {
|
|||
async layout(children, edges, constraints, styleMap) {
|
||||
const childFragments = await Promise.all(children.map(child => child.layoutNextFragment()));
|
||||
|
||||
return {autoBlockSize: 0, childFragments, data: {sab: new SharedArrayBuffer(4) }};
|
||||
// See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()`
|
||||
return {autoBlockSize: 0, childFragments, data: {sab: new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer }};
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue