function updateInvalidationNodeIds(frontendNodeIds, backendNodeIds)
    {
        if (!frontendNodeIds)
            return;
        if (frontendNodeIds.length !== backendNodeIds.length) {
            console.error("Did not resolve the correct number of invalidation node ids.");
            return;
        }

        var backendToFrontendNodeIdMap = {};
        backendNodeIds.forEach(function(backendNodeId, index) {
            backendToFrontendNodeIdMap[backendNodeId] = frontendNodeIds[index];
        });

        if (event.nodeId)
            event.frontendNodeId = backendToFrontendNodeIdMap[event.nodeId];
        event.invalidationTrackingEvents.forEach(function(invalidation) {
            if (invalidation.nodeId)
                invalidation.frontendNodeId = backendToFrontendNodeIdMap[invalidation.nodeId];
        });
    }
@param {?Array.<!DOMAgent.NodeId>} frontendNodeIds
@param {?Array.<!DOMAgent.NodeId>} backendNodeIds