From 21130c7d6fcaee666f33735768c060be2e06614a Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 22 Nov 2014 16:59:48 +0100 Subject: lib: turn on strict mode Turn on strict mode for the files in the lib/ directory. It helps catch bugs and can have a positive effect on performance. PR-URL: https://github.com/node-forward/node/pull/64 Reviewed-By: Colin Ihrig Reviewed-By: Fedor Indutny --- lib/string_decoder.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/string_decoder.js') diff --git a/lib/string_decoder.js b/lib/string_decoder.js index fd11e51c8d..84ac9a9d44 100644 --- a/lib/string_decoder.js +++ b/lib/string_decoder.js @@ -19,6 +19,8 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. +'use strict'; + function assertEncoding(encoding) { if (encoding && !Buffer.isEncoding(encoding)) { throw new Error('Unknown encoding: ' + encoding); -- cgit v1.2.3