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
6
copy.sh
6
copy.sh
|
@ -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
|
Reference in a new issue