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

RESOLVED INVALID

Status

Other Applications
Venkman JS Debugger
RESOLVED INVALID
14 years ago
14 years ago

People

(Reporter: Ryan Frishberg, Assigned: Robert Ginda)

Tracking

Trunk
x86
Windows XP

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
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]
(Reporter)

Comment 1

14 years ago
Created attachment 150575 [details]
Test case
(Reporter)

Updated

14 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → INVALID
Product: Core → Other Applications
You need to log in before you can comment on or make changes to this bug.