From c79204732c3218b6bd07e368b765871ea3f0eeb6 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jul 06 2015 16:03:06 +0000 Subject: Work around syntax error in strict mode This part of the code appears to be unused, so simply maul it to avoid the syntax error. --- diff --git a/js-zlib.spec b/js-zlib.spec index 097e2bc..64142cd 100644 --- a/js-zlib.spec +++ b/js-zlib.spec @@ -46,6 +46,9 @@ echo "Settings: enable_tests=%{?enable_tests}" # Remove bundled and pre-built files. rm -rf bin/* vendor/ +# arguments.callee is forbidden in strict mode +sed -i s/arguments.callee.caller/null/ closure-primitives/base.js + # Use system closure-compiler to build. sed -i -e 's###' \