Ensure _.curry test runs with strict builds.

Former-commit-id: 7bb7d8bdb88b49ec1b35fbf9933f43e2fcd61a53
This commit is contained in:
John-David Dalton
2013-08-09 23:11:50 -07:00
parent 1078cc1c91
commit 32d7e365d2

View File

@@ -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 };