No match.index or match.input for RegExp::exec() result #1831
Labels
breaking-change
Tracking breaking changes for the next major version bump (if ever)
js-sys
Issues related to the `js-sys` crate
Describe the Bug
RegExp.exec()
in JavaScript return an array with TWO extra properties set:input
andindex
.The Rust
js_sys::RegExp::exec()
just return an Array.Steps to Reproduce
n/a. It's missing in the API.
Expected Behavior
js_sys::RegExp::exec()
returns aMatch
struct that allow accessinginput
andindex
as per the JS API.Actual Behavior
The returned value as a
js_sys::Array
that don't haveindex
norinput
properties.Additional Context
There don't even seem to be an obvious way to the properties out of the underlying JS object.
The text was updated successfully, but these errors were encountered: