manuelluis / jsrrdgraph

javascript rrdgraph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Various javascript syntax errors and warnings

wallrj opened this issue · comments

Closure compiler highlights a few syntax errors in the current rrd.js module

There are also a few missing ; redefined variables and trailing whitespace.

// ==ClosureCompiler==
// @compilation_level WHITESPACE_ONLY
// @output_file_name default.js
// @code_url https://raw.github.com/wallrj/jsrrdgraph/master/rrd.js
// ==/ClosureCompiler==
JSC_PARSE_ERROR: Parse error. destructuring assignment forbidden at line 3499 character 0 in rrd.js
[dummy, second_axis_symb, second_axis_magfact ] = this.auto_scale(dum...
^
JSC_PARSE_ERROR: Parse error. invalid assignment target at line 3499 character 0 in rrd.js
[dummy, second_axis_symb, second_axis_magfact ] = this.auto_scale(dum..