[Koha-bugs] [Bug 35718] New: Remove ES6 warnings from JavaScript system preferences
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jan 5 20:04:18 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35718
Bug ID: 35718
Summary: Remove ES6 warnings from JavaScript system preferences
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: lucas at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
When using any of the UserJS system preferences there are warnings if you use
any ES6 features/syntax.
To recreate:
1. Add some JS like this to any of the UserJS system preferences:
$(document).ready( function() {
let something = 1;
const another_thing = 2;
let an_arrow_function = (a, b) => a + b;
console.log( an_arrow_function(something, another_thing) );
});
2. Notice the icons and warnings to the left of the line numbers:
let is available in ES6
const is available in ES6
arrow_function_syntax is available in ES6
ES6 syntax is pretty commonly used now, I don't think we need those warnings.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list