47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
+
+
+
+
+
|
## Do not log errors parsing messages -- not all of them are intended for you !
sed -i '
/if (!typedMessage)/,/}$/ d
/parseTypedMessage/ a \
if (!typedMessage) { return; }
' common/js/src/nacl-module/nacl-module-messaging-channel.js
## Returning a null logger breaks several things apparently
sed -i '
s@return null;@var logger = goog.debug.LogManager.getLogger(name); logger.setLevel(goog.debug.Logger.Level.INFO); return(logger);@
' third_party/closure-library/src-20160208/closure/goog/log/log.js
# Copy out JavaScript files for later use
rm -f "${instdir}/libpcsc.js"
files=(
third_party/closure-library/src-20160208/closure/goog/base.js
third_party/closure-library/src-20160208/closure/goog/math/integer.js
common/js/src/fixed-size-integer.js
third_party/closure-library/src-20160208/closure/goog/debug/error.js
|