Description
I have been attempting to use ProtoBuf.js in IE 8, without much success. I notice that the demo app for ProtoBuf.js, http://www.esoccer.me/#game also doesn't seem to work in IE 8.
This first problem I discovered is that ProtoBuf.js contains this line:
var Message = eval("(function "+T.name+"() { this.__construct.apply(this, arguments); })");
... which apparently IE doesn't like: It can be fixed by changing it to:
var Message = eval("0, (function "+T.name+"() { this.__construct.apply(this, arguments); })");
(see http://stackoverflow.com/questions/7201502/javascript-eval-behavior-in-ie8).
The second problem is determining which set of shims to use. I am currently using https://github.com/inexorabletash/polyfill/blob/master/polyfill.js and https://github.com/inexorabletash/polyfill/blob/master/typedarray.js but I am running into issues that I do not yet understand. This combination of shims does work in IE 9.
If ProtoBuf.js could somehow be made to work on IE 8, that would be great, but I understand if you don't want to support such a PITA. If I do discover how to make it work, I will post back here.