<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: DIY javascript stack trace</title>
	<atom:link href="http://helephant.com/2007/05/diy-javascript-stack-trace/feed/" rel="self" type="application/rss+xml" />
	<link>http://helephant.com/2007/05/diy-javascript-stack-trace/</link>
	<description></description>
	<lastBuildDate>Mon, 01 Feb 2010 01:30:39 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Fritz Schenk</title>
		<link>http://helephant.com/2007/05/diy-javascript-stack-trace/#comment-1272</link>
		<dc:creator>Fritz Schenk</dc:creator>
		<pubDate>Wed, 16 Sep 2009 21:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=317#comment-1272</guid>
		<description>Happy to report that it works in IE6 and IE8
Thanks for the great code.</description>
		<content:encoded><![CDATA[<p>Happy to report that it works in IE6 and IE8<br />
Thanks for the great code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sebasd</title>
		<link>http://helephant.com/2007/05/diy-javascript-stack-trace/#comment-638</link>
		<dc:creator>sebasd</dc:creator>
		<pubDate>Sun, 30 Aug 2009 17:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=317#comment-638</guid>
		<description>I get a parse error when running &quot;Function.prototype.getName = function()&quot; under Safari. The reg expression is not accepted.

I changed:

 var exp = /^function ([^\s(]+).+/&#124;&gt;;

To:

 var exp = /^function ([^\s(]+).+/;

Maybe a typo because the code snippet was parsed by the Website ?

Thanks, this function is usefull by itself :

function myFunction()
{
  var myCaller = myFunction.caller.getName();
}</description>
		<content:encoded><![CDATA[<p>I get a parse error when running &#8220;Function.prototype.getName = function()&#8221; under Safari. The reg expression is not accepted.</p>
<p>I changed:</p>
<p> var exp = /^function ([^\s(]+).+/|&gt;;</p>
<p>To:</p>
<p> var exp = /^function ([^\s(]+).+/;</p>
<p>Maybe a typo because the code snippet was parsed by the Website ?</p>
<p>Thanks, this function is usefull by itself :</p>
<p>function myFunction()<br />
{<br />
  var myCaller = myFunction.caller.getName();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ganja</title>
		<link>http://helephant.com/2007/05/diy-javascript-stack-trace/#comment-632</link>
		<dc:creator>Ganja</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=317#comment-632</guid>
		<description>Thanks for the clean implementation/examples! Very useful.</description>
		<content:encoded><![CDATA[<p>Thanks for the clean implementation/examples! Very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: UUDIBUUDI</title>
		<link>http://helephant.com/2007/05/diy-javascript-stack-trace/#comment-633</link>
		<dc:creator>UUDIBUUDI</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=317#comment-633</guid>
		<description>Good stuff! One suggestion to make it work in a .HTA file (W2k3, IE7):&lt;br /&gt;&lt;br /&gt;in the function getSignature I get an error when it is apparently processing a TypeError, which has no arguments. Hence theFunction.arguments doesn&#039;t seem to exist and javascript throws a nice error there. I changed it into this:&lt;br /&gt;&lt;br /&gt;if (theFunction.arguments) {&lt;br /&gt; for (...) {&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;and it worked like a charm.</description>
		<content:encoded><![CDATA[<p>Good stuff! One suggestion to make it work in a .HTA file (W2k3, IE7):</p>
<p>in the function getSignature I get an error when it is apparently processing a TypeError, which has no arguments. Hence theFunction.arguments doesn&#8217;t seem to exist and javascript throws a nice error there. I changed it into this:</p>
<p>if (theFunction.arguments) {<br /> for (&#8230;) {<br /> }<br />}</p>
<p>and it worked like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henadzi</title>
		<link>http://helephant.com/2007/05/diy-javascript-stack-trace/#comment-634</link>
		<dc:creator>Henadzi</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=317#comment-634</guid>
		<description>Great thx for the example! I think that creating javascript stack trace is a fantastic!</description>
		<content:encoded><![CDATA[<p>Great thx for the example! I think that creating javascript stack trace is a fantastic!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ</title>
		<link>http://helephant.com/2007/05/diy-javascript-stack-trace/#comment-635</link>
		<dc:creator>TJ</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=317#comment-635</guid>
		<description>nice stuff. Unfortunately looping endlessly on recursive function calls.</description>
		<content:encoded><![CDATA[<p>nice stuff. Unfortunately looping endlessly on recursive function calls.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://helephant.com/2007/05/diy-javascript-stack-trace/#comment-636</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=317#comment-636</guid>
		<description>It does fall over if an invalid argument is being passed into a function - theFunction.arguments.length is 1, say, but theFunction.arguments[ 0 ] is null.  In this case, adding &quot;if ( nextArgument == null ) nextArgument = &#039;?&#039;&quot; will give a sensible output.</description>
		<content:encoded><![CDATA[<p>It does fall over if an invalid argument is being passed into a function &#8211; theFunction.arguments.length is 1, say, but theFunction.arguments[ 0 ] is null.  In this case, adding &#8220;if ( nextArgument == null ) nextArgument = &#8216;?&#8217;&#8221; will give a sensible output.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeeman</title>
		<link>http://helephant.com/2007/05/diy-javascript-stack-trace/#comment-637</link>
		<dc:creator>zeeman</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=317#comment-637</guid>
		<description>Thx for this great code!</description>
		<content:encoded><![CDATA[<p>Thx for this great code!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
