From 32d7e365d20773866476ed217a7e15e93ef16061 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 9 Aug 2013 23:11:50 -0700 Subject: [PATCH] Ensure `_.curry` test runs with `strict` builds. Former-commit-id: 7bb7d8bdb88b49ec1b35fbf9933f43e2fcd61a53 --- test/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index eb13cf5d8..487307fdb 100644 --- a/test/test.js +++ b/test/test.js @@ -695,7 +695,8 @@ test('should not alter the `this` binding', function() { function func(a, b, c) { - return this[a] + this[b] + this[c]; + var value = this || {}; + return value[a] + value[b] + value[c]; } var object = { 'a': 1, 'b': 2, 'c': 3 };