patch out eval() from libs/ace/worker-javascript.js
This commit is contained in:
parent
ae9dfe0f43
commit
0e9b3d652b
1 changed files with 5 additions and 1 deletions
4
copy.sh
4
copy.sh
|
@ -8,3 +8,7 @@ do
|
||||||
cp node_modules/ace-builds/src/${i}.js libs/ace/
|
cp node_modules/ace-builds/src/${i}.js libs/ace/
|
||||||
done
|
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
|
Reference in a new issue