#"scripts need to be valid ECMAScript 5" despite MW 1.41

1 messages · Page 1 of 1 (latest)

fringe vector
#

Wiki: https://arboretumfictoria.miraheze.org

Common.js has a script that detects if a page has element of the form <div class="inject-body-class">(string)</div> then adds (string) to the body class list.

This does not happen; an error "scripts need to be valid ECMAScript 5" is thrown, despite MW 1.41 supporting ECMAScript 6. (ECMAScript 6 introduces the let keyword, which Common.js uses)

wispy void
#

I had a look and I can not see any docs for ES6 in common.js

#

Gadgets support ES6 with the requiresES6 keyword, extensions do & user js definately does

#

But the task I can see explicitly says no to common.js

fringe vector
#

Huh... okay