From 98a8d44f114d6a63dbe5d40f414e1c93b713fac6 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Tue, 20 Jan 2015 08:54:29 +1100 Subject: [PATCH] Use strict mode for Javelin core Summary: Enable strict mode for Javelin when running in NodeJS. Test Plan: Made sure Aphlict still worked. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11432 --- resources/celerity/map.php | 2 +- webroot/rsrc/externals/javelin/core/init_node.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index c27aa1b056..e14f8bd385 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -167,7 +167,7 @@ return array( 'rsrc/externals/javelin/core/__tests__/stratcom.js' => '88bf7313', 'rsrc/externals/javelin/core/__tests__/util.js' => 'e251703d', 'rsrc/externals/javelin/core/init.js' => '8c4e8f8b', - 'rsrc/externals/javelin/core/init_node.js' => '77350e4d', + 'rsrc/externals/javelin/core/init_node.js' => 'c234aded', 'rsrc/externals/javelin/core/install.js' => '05270951', 'rsrc/externals/javelin/core/util.js' => '93cc50d6', 'rsrc/externals/javelin/docs/Base.js' => '74676256', diff --git a/webroot/rsrc/externals/javelin/core/init_node.js b/webroot/rsrc/externals/javelin/core/init_node.js index cb53555ff3..19834664b4 100644 --- a/webroot/rsrc/externals/javelin/core/init_node.js +++ b/webroot/rsrc/externals/javelin/core/init_node.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Alternative Javelin init file for Node.js. *