Skip to content

Commit 0eef530

Browse files
DobruniaCopilot
andauthored
Update packages/javascript/src/addons/longTasks.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3381039 commit 0eef530

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/javascript/src/addons/longTasks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ function serializeScript(s: LoAFScript): Json {
141141
['sourceCharPosition', s.sourceCharPosition != null && s.sourceCharPosition >= 0 ? s.sourceCharPosition : null],
142142
['duration', Math.round(s.duration)],
143143
['executionStart', s.executionStart != null ? Math.round(s.executionStart) : null],
144-
['forcedStyleAndLayoutDuration', s.forcedStyleAndLayoutDuration ? Math.round(s.forcedStyleAndLayoutDuration) : null],
145-
['pauseDuration', s.pauseDuration ? Math.round(s.pauseDuration) : null],
144+
['forcedStyleAndLayoutDuration', s.forcedStyleAndLayoutDuration != null ? Math.round(s.forcedStyleAndLayoutDuration) : null],
145+
['pauseDuration', s.pauseDuration != null ? Math.round(s.pauseDuration) : null],
146146
['windowAttribution', s.windowAttribution],
147147
]);
148148
}

0 commit comments

Comments
 (0)