From 20de7a4d2a4798dd962e8d12dc940d54daa3f676 Mon Sep 17 00:00:00 2001 From: Austin Sanders Date: Wed, 27 Jun 2018 15:14:48 -0700 Subject: [PATCH 1/2] Adds use strict. Fixes canjs/canjs#4217 --- benchmark/benchmark.js | 1 + can-observation.js | 1 + recorder-dependency-helpers.js | 1 + temporarily-bind.js | 1 + 4 files changed, 4 insertions(+) diff --git a/benchmark/benchmark.js b/benchmark/benchmark.js index 2c17d66..13bb190 100644 --- a/benchmark/benchmark.js +++ b/benchmark/benchmark.js @@ -1,3 +1,4 @@ +"use strict"; /* jshint ignore:start */ var b = require("steal-benchmark"); var Observation = require("can-observation"); diff --git a/can-observation.js b/can-observation.js index b649906..6d1cfa3 100644 --- a/can-observation.js +++ b/can-observation.js @@ -1,3 +1,4 @@ +"use strict"; /* global require */ // # can-observation var namespace = require('can-namespace'); diff --git a/recorder-dependency-helpers.js b/recorder-dependency-helpers.js index aa4aa3d..bfaa18c 100644 --- a/recorder-dependency-helpers.js +++ b/recorder-dependency-helpers.js @@ -1,3 +1,4 @@ +"use strict"; // # Recorder Dependency Helpers // This exposes two helpers: // - `updateObservations` - binds and unbinds a diff of two observation records diff --git a/temporarily-bind.js b/temporarily-bind.js index a93b213..e2f19b7 100644 --- a/temporarily-bind.js +++ b/temporarily-bind.js @@ -1,3 +1,4 @@ +"use strict"; var canReflect = require("can-reflect"); var temporarilyBoundNoOperation = function(){}; From 85b9cf346c9aea9700a2294252c93d8cd0cdff83 Mon Sep 17 00:00:00 2001 From: Austin Sanders Date: Thu, 28 Jun 2018 14:09:59 -0700 Subject: [PATCH 2/2] Update .jshintrc --- .jshintrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jshintrc b/.jshintrc index 5e969bf..c7e08b0 100644 --- a/.jshintrc +++ b/.jshintrc @@ -46,5 +46,6 @@ "browser": true, "phantom": true, "node": true, - "esversion": 6 + "esversion": 6, + "validthis": true }