Closed Bug 246422 Opened 20 years ago Closed 20 years ago

Venkman profier doesn't change anonymous functions using the guessPattern RegExp

Categories

(Other Applications Graveyard :: Venkman JS Debugger, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: arielladog, Assigned: rginda)

Details

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040608

I changed the RegExp and was trying to figure out how long the JS was taking.  
I noticed that the function is correctly named with brackets around it under 
the loaded scripts panel; however, when you use the profiler, it just lists it 
as an anonymous function.

Reproducible: Always
Steps to Reproduce:
1.  Take code like this:

function myObj(){}

myObj.prototype.meX = function(){return "muaha";}


2.  Use this RegExp or something similar:

\.(\w+)\s*[=]\s*$

3.  Open up the page with the script from step one.  Load the JS Debugger.  
You'll see [meX] appropriately listed in the loaded scripts panel under your 
page as the name of the function.

4.  Now start the profiler and reload the page.  Save profile data.
Actual Results:  
It lists a call to an anonymous function.

Expected Results:  
Instead it should list [meX]
Attached file Test case
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Product: Core → Other Applications
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: