Enabled ECMAScript 5 strict mode in all built-in scripts.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3958 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
3278f52431
commit
c34f7e03f1
@ -163,6 +163,9 @@ SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-debug-console";
|
||||
this.author = "Jens Ayton";
|
||||
this.copyright = "© 2007-2011 the Oolite team.";
|
||||
|
@ -297,6 +297,8 @@
|
||||
script.javaScript.stackTrace.timeLimit = yes; // ...for time limiter
|
||||
script.javaScript.stackTrace.warning = inherit; // ...for warnings
|
||||
|
||||
script.javaScript.warning.uselessExpr = no; // A bug in SpiderMonkey causes this warning to be raised when "use strict" is seen in pedantic mode, even though "use strict" is respected.
|
||||
|
||||
script.load = no;
|
||||
script.load.badName = $scriptError;
|
||||
script.load.notFound = $scriptError;
|
||||
|
@ -30,6 +30,9 @@ MA 02110-1301, USA.
|
||||
/*global galaxyNumber, missionVariables, system*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-cloaking-device";
|
||||
this.author = "Jens Ayton";
|
||||
this.copyright = "© 2007-2010 the Oolite team.";
|
||||
|
@ -30,6 +30,9 @@ MA 02110-1301, USA.
|
||||
/*global player*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-cloaking-device-pod";
|
||||
this.author = "Jens Ayton";
|
||||
this.copyright = "© 2007-2010 the Oolite team.";
|
||||
|
@ -30,6 +30,9 @@ MA 02110-1301, USA.
|
||||
/*global missionVariables*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-cloaking-device-target-ship";
|
||||
this.author = "Jens Ayton";
|
||||
this.copyright = "© 2008-2010 the Oolite team.";
|
||||
|
@ -31,6 +31,9 @@ MA 02110-1301, USA.
|
||||
/*global galaxyNumber, guiScreen, mission, missionVariables, player, system*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-constrictor-hunt";
|
||||
this.author = "Eric Walch";
|
||||
this.copyright = "© 2008-2010 the Oolite team.";
|
||||
|
@ -30,6 +30,9 @@ MA 02110-1301, USA.
|
||||
/*global missionVariables, player*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-constrictor";
|
||||
this.author = "Eric Walch";
|
||||
this.copyright = "© 2008-2010 the Oolite team.";
|
||||
|
@ -27,6 +27,9 @@ MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-default-player-script";
|
||||
this.author = "Jens Ayton";
|
||||
this.description = "Standard script for player ship.";
|
||||
|
@ -29,6 +29,9 @@ MA 02110-1301, USA.
|
||||
/*jslint white: true, undef: true, eqeqeq: true, bitwise: true, regexp: true, newcap: true, immed: true */
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-default-ship-script";
|
||||
this.author = "Jens Ayton";
|
||||
this.copyright = "© 2007-2010 the Oolite team.";
|
||||
|
@ -41,6 +41,9 @@ MA 02110-1301, USA.
|
||||
/*global Entity, global, mission, player, Quaternion, Ship, special, system, Vector3D, SystemInfo, expandMissionText*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-global-prefix";
|
||||
this.author = "Jens Ayton";
|
||||
this.copyright = "© 2009-2010 the Oolite team.";
|
||||
|
@ -30,6 +30,9 @@ MA 02110-1301, USA.
|
||||
/*global Timer, expandDescription, galaxyNumber, guiScreen, mission, missionVariables, player, system*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-nova";
|
||||
this.author = "Eric Walch, Jens Ayton, Kaks";
|
||||
this.copyright = "© 2008-2010 the Oolite team.";
|
||||
|
@ -30,6 +30,9 @@ MA 02110-1301, USA.
|
||||
/*global EquipmentInfo, Timer, galaxyNumber, guiScreen, mission, missionVariables, player, system*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-thargoid-plans";
|
||||
this.author = "Eric Walch";
|
||||
this.copyright = "© 2008-2010 the Oolite team.";
|
||||
|
@ -30,6 +30,9 @@ MA 02110-1301, USA.
|
||||
/*global expandDescription*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-thargoid-warship";
|
||||
this.author = "Jens Ayton";
|
||||
this.copyright = "© 2008-2010 the Oolite team.";
|
||||
|
@ -30,6 +30,9 @@ MA 02110-1301, USA.
|
||||
/*global guiScreen, mission, missionVariables, player*/
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
this.name = "oolite-trumbles";
|
||||
this.author = "Jens Ayton";
|
||||
this.copyright = "© 2008-2010 the Oolite team.";
|
||||
|
Loading…
x
Reference in New Issue
Block a user