This repository hosts a script that generates tests for Unicode property escapes in ECMAScript regular expressions, including property escapes for properties of strings.
The plan is to update the script every time the Unicode Standard is updated (i.e. yearly) and to upstream its output to Test262.
Clone the repository, and then run:
npm install
npm run build
The output
directory holds the generated test files, ready to be upstreamed to Test262’s test/built-ins/RegExp/
directory.
To run the tests in V8 using test262-harness
:
test262-harness --test262Dir="$HOME/projects/test262" --hostPath="$HOME/.jsvu/v8" --hostType=d8 --hostArgs='--harmony-regexp-property' $(find output -name '*.js') --threads=4
This assumes you have the Test262 repository checked out at ~/projects/test262
, and a native V8/d8
build at ~/.jsvu/v8
.
Mathias Bynens |
The code in this repository is available under the MIT license. (The generated tests have their own license.)