BreezeJS's 1.4.1 isolateES5Props causing Out of Stack Space error in IE 8

时间秒杀一切 提交于 2019-12-01 18:03:53

问题


Using 1.4.1 of BreezeJS we found that some new code added to Isolate ES5 Properties is causing IE 8 to have the following error:

Error getting metadata: Metadata import failed for breeze/breeze/Metadata; Unable to process returned metadata:Object doesn't support property or method 'getPrototypeOf'

We tried using both Uber Proto's getPrototypeOf (https://github.com/daffl/uberproto) and es5-sham (https://github.com/kriskowal/es5-shim) but both result with the same issue.

We also tried removing the regular json.parse and using json2's version with the same results.

Metadata import failed for /breeze/breeze/Metadata; Unable to process returned metadata:Out of stack space

Chrome, Firefox, and IE 9+ work without issue, but IE 8 support is required. We can comment out the line to get it to work:

 // isolateES5Props(proto);

But I'm guessing that will cause issues somewhere down the line.


回答1:


This should be fixed in Breeze v 1.4.2, available now.



来源:https://stackoverflow.com/questions/18412752/breezejss-1-4-1-isolatees5props-causing-out-of-stack-space-error-in-ie-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!