Difference in lambda functions, uneval() and toString()

RESOLVED WORKSFORME

Status

()

Core
JavaScript Engine
RESOLVED WORKSFORME
9 years ago
6 years ago

People

(Reporter: Biju, Unassigned)

Tracking

({testcase})

Trunk
x86
Windows Vista
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
Difference in lambda function uneval() and toString()



function x(i)i*i*i;
uneval(x);
===>
function x(i) i * i * i;


x=(function x()i*i*i);
uneval(x);
===>
(function x() i * i * i)




function x(i)i*i*i;
x.toSource();
===>
function x(i) i * i * i;


x=(function x()i*i*i);
x.toSource();
===>
(function x() i * i * i)





function x(i)i*i*i;
x.toString();
===>
function x(i) i * i * i;



x=(function x()i*i*i);
x.toString();
===>
function x() i * i * i



Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2a1pre)
Gecko/20090324 Minefield/3.6a1pre

my pref
javascript.options.jit.content=true
javascript.options.jit.chrome=false

Updated

9 years ago
Keywords: testcase

Comment 1

6 years ago
Fixed by saving the source.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.