CanvasRenderingContext2DResource.AttributeProperties.forEach(function(attribute) { if (attribute in ctx) state[attribute] = maybeToReplayable(ctx[attribute]); });
CanvasRenderingContext2DResource.AttributeProperties.forEach(function(attribute) { if (attribute in ctx) state[attribute] = maybeToReplayable(ctx[attribute]); });