Repository navigation
Releases
Releases · corvus-dotnet/corvus-regex-ecma262-rs
corvus-regex-ecma262 0.2.7
Changes
- The grammar-only reader: memory in proportion to the pattern for nested named groups (#30)
corvus-regex-ecma262 0.2.6
Changes
- A grammar-only reader: Regex::is_valid_pattern, as .NET's IsValidPattern (#29)
corvus-regex-ecma262 0.2.5
Changes
- A window reaches as many characters as it counts (#27)
corvus-regex-ecma262 0.2.4
Changes
- Getting-started pages for Rust and C, whose code CI runs (#25)
corvus-regex-ecma262 0.2.3
Changes
- The grammar of ECMAScript 2020 and a choice of Unicode version, in the crate and the C library (#23)
corvus-regex-ecma262 0.2.2
Changes
- Every merged pull request releases what it changed, with the next patch version, unless it is labelled no_release (#17)
harness 0.2.2.1
Changes
- A count other than V8's is a wrong answer for every engine, whatever its dialect: no figure (#20)
Harness 0.2.1.5
A harness release: the benchmark images alone (Rust and C), with no crate or C library version.
- The data-set runners judge the exec calls of test262 (
exec/test262.jsonlin the test data). - Each runner writes its engine's compliance file (
--compliance): the counts, the runner and the calls it makes in each encoding, and what it leaves out, which the benchmark page shows as badges in place of a free-text note. - regress is judged over UTF-8 on
captures.jsonltoo, and gets 2 s an answer: a watchdog thread in its child processes times each answer by the thread's CPU time, and once three answers of a record reach the limit, its other answers are unanswered. - The checked-in counts are made again at cff0860: regress 29,233,572 right and 148,848 wrong; QuickJS 15,653,583 right and 109 wrong.
Harness 0.2.1.4
A harness release: the benchmark images alone (Rust and C), with no crate or C library version.
- The test data pin moves to cff0860, where test262 is brought in properly (corvus-dotnet/ecma262-regex-test-data#10).
- regress's and QuickJS's checked-in counts are made at cff0860: regress 26,252,609 right and 131,854 wrong; QuickJS 15,519,214 right and 109 wrong.
- Dependabot never proposes a Node version or a major version of a base image.
corvus-regex-ecma262 0.2.1
A fix to the search for where a match starts, in the crate and the C library. Patterns that are runs of loops followed by a literal could miss matches.
The fix
- What went wrong. For a pattern that is loops followed by a literal (such as
\b[0-9a-f]*étor\W+[a-z]*\W*a), the search finds the literal and walks back over the loops' runs to the earliest start. It skipped starts it should have tried, so a match could be missed. - The three faults.
- The occurrence of the literal itself was never tried as a start.
\bbefore the loops was allowed when only the first loop's set was of word characters.- The sets were checked for shared characters only where they were next to each other.
- Now. A failed start moves a floor below which no start is tried again. Where every loop may be empty, the occurrence is then tried at once.
\bneeds every loop's set to be of word characters. Every two sets must share no character.
How it was found. A differential fuzzer, now fuzz.js in ecma262-regex-test-data, and the test data's new start-searches.jsonl family. A test now keeps every case the fuzzer found.
C library. No change to the API. CRE_VERSION_* is 0.2.1.
The test data gives 29,289,554 right answers and none wrong at 2b32a26, including start-searches.jsonl and ill-formed-utf8.jsonl. 24 seeds of the fuzzer are clean.