How to get source of nested function ?

Giganews Newsgroups
Subject: How to get source of nested function ?
Posted by:  Richard A. DeVenezia (radeve…@ix.netcom.com)
Date: Wed, 3 Sep 2003

Hi:

function foo () {
  var xyz = 123;
  function bar () {
    var abc = 456;
  }
}

I can alert (foo) to see the function source

Is there an alert (<something>) that will show me only the source of
function bar inside function foo ?

Richard A. DeVenezia

Replies