Commits

Jonathan Fine committed 48305b8

call-apply.js: Added return_this() and isthisable().

Comments (0)

Files changed (1)

source/examples/call-apply.js

     '' + args === '[object Object]' || ddt();
     '' + arguments_to_array(args) === '0,1,2,3' || ddt();
 })();
+
+
+var return_this = function(){return this;};
+var global = return_this();
+
+var isthisable = function(obj){
+
+  return return_this(obj) === global;
+};