Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"Program:exit"() {
const tracker = new ReferenceTracker(context.getScope())
const references = tracker.iterateGlobalReferences({
BigInt: { [ReferenceTracker.READ]: true },
BigInt64Array: { [ReferenceTracker.READ]: true },
BigUint64Array: { [ReferenceTracker.READ]: true },
})
for (const { node } of references) {
context.report({ messageId: "forbidden", node })
}
},
}