Skip to content

Fix opts argument of Node#rangeBy() and Node#positionBy() cannot be omitted#2031

Merged
ai merged 3 commits into
postcss:mainfrom
mizdra:fix-opts
Mar 22, 2025
Merged

Fix opts argument of Node#rangeBy() and Node#positionBy() cannot be omitted#2031
ai merged 3 commits into
postcss:mainfrom
mizdra:fix-opts

Conversation

@mizdra

@mizdra mizdra commented Mar 22, 2025

Copy link
Copy Markdown
Contributor

fix: #2028

mizdra added 2 commits March 22, 2025 16:20
- The `opts` argument to `Node#error` is currently omissible, but we'll assign a default value just in case.
Comment thread test/node.test.ts
Comment on lines +558 to +559
end: { column: 12, line: 1 },
start: { column: 6, line: 1 }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The offset is missing due to #2029.

@ai

ai commented Mar 22, 2025

Copy link
Copy Markdown
Member

Thanks!

@mizdra
mizdra deleted the fix-opts branch March 23, 2025 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calling Node#rangeBy()/Node#positionBy() with no arguments throws an error

2 participants