Skip to content

Commit

Permalink
fix: ?? is error on node@10 (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
ByLCY authored Sep 12, 2024
1 parent 49574ed commit 366d738
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,10 +771,10 @@ class DOMMatrix {
}

transformPoint(point) {
const x = point.x ?? 0
const y = point.y ?? 0
const z = point.z ?? 0
const w = point.w ?? 1
const x = point.x || 0
const y = point.y || 0
const z = point.z || 0
const w = point.w || 1

const values = this[VALUES]

Expand Down

0 comments on commit 366d738

Please sign in to comment.