Community
Participate
Working Groups
Build Identifier: 3.6.2.r362 Ext JS 4 is using a lot this construct: var infinity = Infinity Infinity with upper case is part of the Global namespace. Reproducible: Always Steps to Reproduce: Load Ext JS 4 library inside Eclipse JavaScript editor
What is the error message?
Error is: Syntax error on token "infinity", invalid VariableDeclaratorId File: ext-all-debug-w-comments.js line 57856 JavaScript Problem getBBox: function() { var i = 0, sprite, bb, items = this.items, len = this.length, red>>infinity<<red = Infinity, minX = red>>infinity<<red, maxHeight = -infinity, minY = infinity, maxWidth = -infinity, maxWidthBBox, maxHeightBBox;
it seems it isn't even possible to 'workaround' this issue by changing the JS validation preferences.
The entire JS validation module is very bad and has no visible owner. It also slowdown my entire team and crash Eclipse if the files are big. Trying to stop the validation is an extreme pain, it always show a stupid popup saying that to apply that we need to rebuild everything... which is like 1 hour. It's a piece of garbage, they should scrap it and try again.
This validation error is no longer shown in WTP 3.6 and 3.5.1.