Skip to content

Commit

Permalink
fix ?? is error on node@10
Browse files Browse the repository at this point in the history
  • Loading branch information
ByLCY committed Sep 5, 2024
1 parent 4e4d30c commit ac375d2
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 ac375d2

Please sign in to comment.