Source code of Detecting JavaScript Transpiler bugs with Grammar-guided Mutation.
Tested on Ubuntu 20.04 with following environment.
- python v3.6.13
- npm v8.19.1
- n v9.0.0
For nodejs and npm and nodejs.
sudo apt install npm -y
sudo npm install -g n
sudo n latest
For npm dependency
cd TransFuzz
sudo npm -i
For python dependency
cd TransFuzz
pip3 install -r requirement.txt
Please refer src/conf/README.md for writing the configuration file.
cd src
python3 preprocess/pro_data.py <conf ABSPATH>
After this step, you can get subtree dataset and leaf dataset in dataset dir.
python3 main.py <conf ABSPATH>
python3 reduce/JSReduce.py <conf ABSPATH> <reduced bug path> <reduced testcase path>