-
Notifications
You must be signed in to change notification settings - Fork 47
recompile node-browserchannel with advanced optimizations #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Fascinating. I wonder if changes in the compiler or the closure library have broken things. And is it the patch or the bcsocket code which breaks it? I last updated the patch at closure-library r2519 - although I may well have last compiled using a more recent version of the closure-library. If its the patch, it simply fixes some small problems where manually closing connections can leave dangling requests. The requests aren't retried anyway, so mostly its just a problem for nodejs-based clients. I'll dig into it. |
Same results compiled with patch and without. |
Alright - its either a change in the latest closure compiler or closure code. I recompiled using the latest of both a few months ago and it worked fine. I'll play with it.... |
-> Had a play with this. Turns out its a change in the closure library. r151cc367517746ec52575 from november works, and HEAD doesn't work. The bug is related to eventtarget.js:219: /** @override */
goog.events.EventTarget.prototype.listen = function(
type, listener, opt_useCapture, opt_listenerScope) {
this.assertInitialized_();
return this.eventTargetListeners_.add(
String(type), listener, false /* callOnce */, opt_useCapture,
opt_listenerScope);
}; ... The call to Git bisect would do it. |
.. This is from yesterday. The note is quite useful - they probably just haven't re-released the closure compiler since then. |
The last known working commit of closure-compiler is therefore Note to self: remember, if Closing. |
Compiled Using -------------- - [Closure Library] `df47692b1bac`, included closure-terminate-fixes-r2519.patch applied - [Closure Compiler] `v20140110` Notes ----- A newer version of closure-library has been committed, however closure-library#83c6a0b97bd1 causes josephg#34 [Closure Library]: https://code.google.com/p/closure-library/source/detail?r=df47692b1bacd494548a3b00b150d9f6a428d58a [Closure Compiler]: http://dl.google.com/closure-compiler/compiler-20140110.tar.gz
Compiled Using -------------- - [Closure Library] `df47692b1bac` with included closure-terminate-fixes-r2519.patch applied - [Closure Compiler] `v20140110` Notes ----- A newer closure-library exists but causes josephg#34 (closure-library#83c6a0b97bd1) [Closure Library]: https://code.google.com/p/closure-library/source/detail?r=df47692b1bacd494548a3b00b150d9f6a428d58a [Closure Compiler]: http://dl.google.com/closure-compiler/compiler-20140110.tar.gz
Compiled Using -------------- - [Closure Library] `df47692b1bac` with included closure-terminate-fixes-r2519.patch applied - [Closure Compiler] `v20140110` Notes ----- A newer closure-library exists but causes josephg#34 (closure-library#83c6a0b97bd1) [Closure Library]: https://code.google.com/p/closure-library/source/detail?r=df47692b1bacd494548a3b00b150d9f6a428d58a [Closure Compiler]: http://dl.google.com/closure-compiler/compiler-20140110.tar.gz
Compiled Using -------------- - [Closure Library] `df47692b1bac` with included closure-terminate-fixes-r2519.patch applied - [Closure Compiler] `v20140110` Notes ----- A newer closure-library exists but causes josephg#34 (closure-library#83c6a0b97bd1) [Closure Library]: https://code.google.com/p/closure-library/source/detail?r=df47692b1bacd494548a3b00b150d9f6a428d58a [Closure Compiler]: http://dl.google.com/closure-compiler/compiler-20140110.tar.gz
Compiled Using -------------- - [Closure Library] `df47692b1bac` with included closure-terminate-fixes-r2519.patch applied - [Closure Compiler] `v20140110` Notes ----- Previous build failed due to use of Java ~1.6. Java ~1.7 is a hard requirement and should be added to the docs. A newer closure-library exists but causes #34 (closure-library#83c6a0b97bd1) [Closure Library]: https://code.google.com/p/closure-library/source/detail?r=df47692b1bacd494548a3b00b150d9f6a428d58a [Closure Compiler]: http://dl.google.com/closure-compiler/compiler-20140110.tar.gz
New closure-library optimizations appear to be causing issues with node-bcsocket. Falling back to simple optimizations results in a green test suite but is unacceptably large.
Don't know the closure-library svn tag intended to be used for node-browserchannel compilation, assuming there is/was a published tag at all.
Following node-browserchannel instructions, the patch wenzowski/closure-library@6181ead appears (I think?) to have applied cleanly to latest closure-library wenzowski/closure-library@f26bb31
The text was updated successfully, but these errors were encountered: