Community
Participate
Working Groups
We should offer the following fixes for the no-new-wrappers rule: 1. remove the 'new' keyword (perhaps they actually want to call the function) 2. convert the value to a literal, for example: var n = new String("hi"); -> var n = "hi"; var n = String(); -> var n = ""; var n = new Boolean(true); -> var n = true; var n = Boolean(); -> var n = false; var n = new Number(12); -> var n = 12; var n = Number(); -> var n = 0;
Fix + tests in: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=f5d9fd1030d490e62af10af907be2ea39d9379af