Opened 9 days ago

Last modified 11 hours ago

#2098 assigned enhancement

'use strict' in JavaScript

Reported by: nicklas Owned by: nicklas
Priority: minor Milestone: BASE 3.12
Component: web Version:
Keywords: Cc:

Description

By adding 'use strict'; to the top of a JavaScript file we can tell the JavaScript engine to not allow some unsafe usage. For example, using a variable without declaring it (for example, due to a typo). This will create safer and more robust code.

For more information see: https://www.w3schools.com/js/js_strict.asp

While the change is simple to implement it requires a lot of testing to check that nothing is broken by it. Luckily it is possible to do this per file (or even per function) so we don't have to do it all at the same time.

Change History (1)

comment:1 Changed 11 hours ago by nicklas

  • Milestone changed from BASE Future Release to BASE 3.12
  • Owner changed from everyone to nicklas
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.