MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / asanifyTransform

Function asanifyTransform

tools/acorn-optimizer.mjs:1246–1248  ·  view source on GitHub ↗
(node, action)

Source from the content-addressed store, hash-verified

1244}
1245
1246function asanifyTransform(node, action) {
1247 makeCallExpression(node.property, '_asan_js_check_index', [{ ...node.object }, { ...node.property }, makeIdentifier(action)]);
1248}
1249// Add ASan check to direct HEAP* loads/stores.
1250// That lets ASan cover JS too.
1251function asanify(ast) {

Callers 2

AssignmentExpressionFunction · 0.85
MemberExpressionFunction · 0.85

Calls 2

makeCallExpressionFunction · 0.85
makeIdentifierFunction · 0.85

Tested by

no test coverage detected