Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363494

Summary: Consider using strict mode in JavaScript
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ralf Sternberg CLA 2011-11-10 11:19:18 EST
Enabling strict mode could help us to improve the quality of our JavaScript code. We could experimentally render the "use strict;" statement it in development mode and see what happens...

See https://developer.mozilla.org/en/JavaScript/Strict_mode
Comment 1 Ralf Sternberg CLA 2012-01-07 20:07:19 EST
I tried to enable strict mode but found that parts of qooxdoo do not comply. For example, certain features like the arguments.callee property are not supported in strict mode.

While exploring JSHint, I found that global strict mode is not even a recommended practice as it might break third-party widgets on the site. As an alternative, it's possible to enable strict mode within functions. As there's also a jshint options to enforce this, we will look into it as part of bug 311150.