Bug ID 967229: iRules LX: create/modify ilx plugin reports error when using ECMA6 syntax

Last Modified: Apr 19, 2021

Bug Tracker

Affected Product:  See more info
BIG-IP TMOS(all modules)

Known Affected Versions:
13.1.0, 13.1.0.1, 13.1.0.2, 13.1.0.3, 13.1.0.4, 13.1.0.5, 13.1.0.6, 13.1.0.7, 13.1.0.8, 13.1.1, 13.1.1.2, 13.1.1.3, 13.1.1.4, 13.1.1.5, 13.1.3, 13.1.3.1, 13.1.3.2, 13.1.3.3, 13.1.3.4, 13.1.3.5, 13.1.3.6, 13.1.4, 14.1.0, 14.1.0.1, 14.1.0.2, 14.1.0.3, 14.1.0.5, 14.1.0.6, 14.1.2, 14.1.2.1, 14.1.2.2, 14.1.2.3, 14.1.2.4, 14.1.2.5, 14.1.2.6, 14.1.2.7, 14.1.2.8, 14.1.3, 14.1.3.1, 14.1.4, 14.1.4.1, 15.1.0, 15.1.0.1, 15.1.0.2, 15.1.0.3, 15.1.0.4, 15.1.0.5, 15.1.1, 15.1.2, 15.1.2.1

Opened: Nov 24, 2020
Severity: 4-Minor

Symptoms

"tmsh modify ilx plugin <PLUGIN> from-workspace <WORKSPACE>" (or) "tmsh create ilx plugin <PLUGIN> from-workspace <WORKSPACE>" reports errors when ECMA6 syntax is used : "... is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz)."

Impact

BIG-IP reports an error when ECMA6 syntax is used.

Conditions

When ECMA6 syntax is used in iRules LX workspace.

Workaround

1. Use GUI to create iRulesLX plugin. (or) 2. Add /* jshint esversion: 6 */ to the top of the js code. (or) 3. Add '.jshintrc" file in /var/ilx/workspaces/<current worspace> with below contents { "esversion": 6 }

Fix Information

None

Behavior Change