{"record":{"id":"04f4e03abfdebaa8","repo":"avajs/ava","slug":"globs-are-over-100-kib-and-cannot-be-resolved","errorCode":null,"errorMessage":"Globs are over 100 KiB and cannot be resolved","messagePattern":"Globs are over 100 KiB and cannot be resolved","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"entrypoints/eslint-plugin-helper.js","lineNumber":49,"sourceCode":"\t\t\tworkerData: {\n\t\t\t\tdataBuffer,\n\t\t\t\tsyncBuffer,\n\t\t\t\tfirstMessage: {projectDir, overrideExtensions, overrideFiles},\n\t\t\t},\n\t\t});\n\t\tworker.unref();\n\t} else {\n\t\tworker.postMessage({projectDir, overrideExtensions, overrideFiles});\n\t}\n\n\tconst synchronize = Atomics.wait(sync, 0, 0, 10_000);\n\tif (synchronize === 'timed-out') {\n\t\tthrow new Error('Timed out resolving AVA configuration');\n\t}\n\n\tconst byteLength = Atomics.exchange(sync, 0, 0);\n\tif (byteLength === MAX_DATA_LENGTH_EXCLUSIVE) {\n\t\tthrow new Error('Globs are over 100 KiB and cannot be resolved');\n\t}\n\n\tconst globsOrError = v8.deserialize(data.slice(0, byteLength));\n\tif (globsOrError instanceof Error) {\n\t\tthrow globsOrError;\n\t}\n\n\treturn globsOrError;\n};\n\nconst helperCache = new Map();\n\nexport function load(projectDir, overrides) {\n\tconst cacheKey = `${JSON.stringify(overrides)}\\n${projectDir}`;\n\tif (helperCache.has(cacheKey)) {\n\t\treturn helperCache.get(cacheKey);\n\t}\n","sourceCodeStart":31,"sourceCodeEnd":67,"githubUrl":"https://github.com/avajs/ava/blob/bbfd946322fdeca2b547a691d947fb4e18c0c67f/entrypoints/eslint-plugin-helper.js#L31-L67","documentation":"Thrown by resolveGlobsSync when the worker reports that the serialized glob data equals MAX_DATA_LENGTH_EXCLUSIVE: the resolved include/exclude globs exceed the fixed 100 KiB SharedArrayBuffer capacity used for worker-to-main-thread transfer, so the payload cannot be delivered.","triggerScenarios":"Thrown at entrypoints/eslint-plugin-helper.js:49 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the number or size of glob patterns in the AVA 'files' configuration","Broaden patterns (fewer, wider globs) so the serialized result is smaller","Move very large file lists out of the config and rely on directory-based globs","If genuinely needed, patch/raise MAX_DATA_LENGTH_EXCLUSIVE and the SharedArrayBuffer size in a fork"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bbfd946322fdeca2b547a691d947fb4e18c0c67f","analyzedAt":"2026-09-02T01:24:43.834Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}