Fix test typo in test/index.html.

This commit is contained in:
John-David Dalton
2014-01-20 00:16:15 -08:00
parent f4de7422b3
commit 7a213c9d6f

View File

@@ -51,12 +51,12 @@
Function.prototype._method = function() {};
// allow bypassing native checks
setProperty(Function.prototype, '_toString', _fnToString);
setProperty(Function.prototype, 'toString', (function() {
var func = Function.prototype.toString;
function toString() {
return this.toString !== toString ? this.toString() : func.call(this);
}
var func = Function.prototype.toString;
setProperty(Function.prototype, '_toString', func);
return toString;
}()));