Update for Transcrypt 3.6.60

Transcrypt bug 387 closed
This commit is contained in:
RunasSudo 2017-12-05 09:13:39 +10:30
parent 4a0efef128
commit 6100ac6368
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 3 additions and 9 deletions

View File

@ -15,11 +15,11 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
FLAGS=-k FLAGS="-k -mc -o"
#for f in eos.js eos.js_tests; do #for f in eos.js eos.js_tests; do
for f in eos.js_tests; do for f in eos.js_tests; do
transcrypt -b -n -o $FLAGS $f.py || exit 1 transcrypt -b -n $FLAGS $f.py || exit 1
# Javascript identifiers cannot contain dots # Javascript identifiers cannot contain dots
perl -0777 -pi -e 's/eos.js/eosjs/g' eos/__javascript__/$f.js perl -0777 -pi -e 's/eos.js/eosjs/g' eos/__javascript__/$f.js
@ -35,14 +35,8 @@ for f in eos.js_tests; do
# Fix handling of properties, Transcrypt bug #407 # Fix handling of properties, Transcrypt bug #407
perl -077 -pi -e 's/var __get__ = function \(self, func, quotedFuncName\) \{/var __get__ = function (self, func, quotedFuncName) { if(typeof(func) != "function"){return func;}/g' eos/__javascript__/$f.js perl -077 -pi -e 's/var __get__ = function \(self, func, quotedFuncName\) \{/var __get__ = function (self, func, quotedFuncName) { if(typeof(func) != "function"){return func;}/g' eos/__javascript__/$f.js
# Transcrypt bug #407
perl -0777 -pi -e 's/property.call \((.*?), \g1.\g1.__impl__(.*?)\)/property.call ($1, $1.__impl__$2)/g' eos/__javascript__/$f.js perl -0777 -pi -e 's/property.call \((.*?), \g1.\g1.__impl__(.*?)\)/property.call ($1, $1.__impl__$2)/g' eos/__javascript__/$f.js
perl -0777 -pi -e 's/property.call \((.*?), \g1.\g1.__implpy_(.*?)\)/property.call ($1, $1.__impl__$2)/g' eos/__javascript__/$f.js perl -0777 -pi -e 's/property.call \((.*?), \g1.\g1.__implpy_(.*?)\)/property.call ($1, $1.__impl__$2)/g' eos/__javascript__/$f.js
# Transcrypt bug #387
perl -0777 -pi -e 's/var __nest__ = function \(headObject, tailNames, value\) \{/var __nest__ = function (headObject, tailNames, value) { if (headObject === __all__ && value.__all__) { value.__all__.__module__ = tailNames; }/g' eos/__javascript__/$f.js
perl -0777 -pi -e "s/var (.*?) = __class__ \('\g1', \[(.*?)\], \{/var "'$1'" = __class__ ('"'$1'"', ["'$2'"], { __module__: __all__.__module__,/g" eos/__javascript__/$f.js
done done
cp eos/__javascript__/eos.js_tests.js eosweb/core/static/js/eosjs.js cp eos/__javascript__/eos.js_tests.js eosweb/core/static/js/eosjs.js

View File

@ -18,7 +18,7 @@ pymongo==3.5.1
requests==2.18.4 requests==2.18.4
requests-oauthlib==0.8.0 requests-oauthlib==0.8.0
six==1.10.0 six==1.10.0
Transcrypt==3.6.58 Transcrypt==3.6.60
typed-ast==1.1.0 typed-ast==1.1.0
urllib3==1.22 urllib3==1.22
Werkzeug==0.12.2 Werkzeug==0.12.2