1
0
Fork 0

patch out eval() from libs/ace/worker-javascript.js

This commit is contained in:
Lukas Winkler 2017-09-09 18:13:52 +02:00
parent ae9dfe0f43
commit 0e9b3d652b

View file

@ -7,4 +7,8 @@ for i in ace mode-javascript theme-chrome theme-tomorrow worker-javascript
do
cp node_modules/ace-builds/src/${i}.js libs/ace/
done
cp node_modules/ace-builds/LICENSE node_modules/ace-builds/README.md libs/ace/
cp node_modules/ace-builds/LICENSE node_modules/ace-builds/README.md libs/ace/
# Patch out eval()
sed -e 's/eval("throw 0;" + str);/return true;/g' libs/ace/worker-javascript.js > tmp.js
mv tmp.js libs/ace/worker-javascript.js