| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fe82baf commit c9ffffc
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,59 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + | ||
| 3 | + const os = require('node:os'); | ||
| 4 | + | ||
| 5 | + // On AIX, V8's OS::DecommitPages() has an inherent race condition caused by | ||
| 6 | + // AIX's non-POSIX MAP_FIXED behavior. The implementation must munmap() then | ||
| 7 | + // mmap(), and another thread can steal the address range in between. The | ||
| 8 | + // Blob.arrayBuffer() tests trigger this by creating enough GC pressure | ||
| 9 | + // (especially the concurrent reads test) to hit the race window. | ||
| 10 | + // See deps/v8/src/base/platform/platform-aix.cc, lines 168-203. | ||
| 11 | + const isAIX = os.type() === 'AIX'; | ||
| 12 | + | ||
| 13 | + const conditionalSkips = {}; | ||
| 14 | + | ||
| 15 | + if (isAIX) { | ||
| 16 | + conditionalSkips['Blob-array-buffer.any.js'] = { | ||
| 17 | + skip: 'V8 DecommitPages race condition on AIX (munmap/mmap non-atomic)', | ||
| 18 | + }; | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | + module.exports = { | ||
| 22 | + ...conditionalSkips, | ||
| 23 | + 'Blob-constructor-dom.window.js': { | ||
| 24 | + skip: 'Depends on DOM API', | ||
| 25 | + }, | ||
| 26 | + 'Blob-constructor.any.js': { | ||
| 27 | + fail: { | ||
| 28 | + expected: [ | ||
| 29 | + 'blobParts not an object: boolean with Boolean.prototype[Symbol.iterator]', | ||
| 30 | + 'blobParts not an object: number with Number.prototype[Symbol.iterator]', | ||
| 31 | + 'blobParts not an object: BigInt with BigInt.prototype[Symbol.iterator]', | ||
| 32 | + 'blobParts not an object: Symbol with Symbol.prototype[Symbol.iterator]', | ||
| 33 | + 'Getters and value conversions should happen in order until an exception is thrown.', | ||
| 34 | + 'Arguments should be evaluated from left to right.', | ||
| 35 | + ], | ||
| 36 | + flaky: [ | ||
| 37 | + 'Passing typed arrays as elements of the blobParts array should work.', | ||
| 38 | + 'Passing a Float16Array as element of the blobParts array should work.', | ||
| 39 | + 'Passing a Float64Array as element of the blobParts array should work.', | ||
| 40 | + 'Passing BigInt typed arrays as elements of the blobParts array should work.', | ||
| 41 | + ], | ||
| 42 | + }, | ||
| 43 | + }, | ||
| 44 | + 'Blob-in-worker.worker.js': { | ||
| 45 | + skip: 'Depends on Web Workers API', | ||
| 46 | + }, | ||
| 47 | + 'Blob-slice.any.js': { | ||
| 48 | + fail: { | ||
| 49 | + expected: [ | ||
| 50 | + 'Slicing test: slice (1,1).', | ||
| 51 | + 'Slicing test: slice (1,3).', | ||
| 52 | + 'Slicing test: slice (1,5).', | ||
| 53 | + 'Slicing test: slice (1,7).', | ||
| 54 | + 'Slicing test: slice (1,8).', | ||
| 55 | + 'Slicing test: slice (1,9).', | ||
| 56 | + ], | ||
| 57 | + }, | ||
| 58 | + }, | ||
| 59 | + }; | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments