From 077bf7341e0ea9276da018613bc8676b91b02bdb Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Wed, 9 Dec 2015 18:41:41 +0300 Subject: Revert "Core: make isNumeric limited to strings and numbers" This reverts commit 15ac848868e993dfe5ccd7751a94f5c8edc288bc. --- test/unit/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit/core.js b/test/unit/core.js index 6aa2a3d63..dc083de31 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -455,8 +455,8 @@ QUnit.test( "isNumeric", function( assert ) { assert.ok( t( 1.5999999999999999 ), "Very precise floating point number" ); assert.ok( t( 8e5 ), "Exponential notation" ); assert.ok( t( "123e-2" ), "Exponential notation string" ); + assert.ok( t( new ToString( "42" ) ), "Custom .toString returning number" ); - assert.equal( t( new ToString( "42" ) ), false, "Custom .toString returning number" ); assert.equal( t( "" ), false, "Empty string" ); assert.equal( t( " " ), false, "Whitespace characters string" ); assert.equal( t( "\t\t" ), false, "Tab characters string" ); -- cgit v1.2.3