Test case details

Preparation Code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js"></script> <script> var underscore = _.noConflict(); </script> <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.0.0/lodash.min.js"></script> <script> var lodash = _.noConflict(); </script>

Test cases

Test #1

var foo = underscore.bind(function (x) {     return this + x; }, 1);

Test #2

var foo = jQuery.proxy(function (x) {     return this + x; }, 1);

Test #3

var foo = lodash.bind(function (x) {     return this + x; }, 1);

Test #4

var that = 1; var foo = function(x) {     return that + x; }