Skip to content

lib: optimize copyError with ObjectAssign in primordials

optimized the copyError function by using ObjectAssign from primordials. this change replaces the for-loop with ObjectAssign, which improves memory usage and performance.

this change updates the copyError function in internal/assert.js to use ObjectAssign for copying properties.

Merge request reports

Loading