From 7a213c9d6ff7400cb00db00936013d3cfa02650a Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 20 Jan 2014 00:16:15 -0800 Subject: [PATCH] Fix test typo in test/index.html. --- test/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.html b/test/index.html index 1d223da8d..4775f1776 100644 --- a/test/index.html +++ b/test/index.html @@ -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; }()));