decompilation of |new Date()| is |new Date| (js1_4/Regress/function-002.js)

RESOLVED INVALID

Status

()

Core
JavaScript Engine
RESOLVED INVALID
11 years ago
11 years ago

People

(Reporter: bc, Unassigned)

Tracking

({regression})

Trunk
x86
All
regression
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

11 years ago
js1_4/Regress/function-002.js

typeof f1 = function   PASSED!
f1.toString() == dec1 = true   PASSED!
typeof f2 = function   PASSED!
f2.toString() == dec2 = false  FAILED! expected: true

fails in 1.8 and 1.9 20060909

function g() { y = new Date(); }
g + ''
function g() { y = new Date; }
(Reporter)

Comment 1

11 years ago
this regressed 20060906
If the test demands empty argument list for constructor call, it's invald.  Can you teach it to not require () and if there's nothing else wrong, invalidate this bug?  Thanks,

/be
(Reporter)

Comment 3

11 years ago
Checking in function-002.js;
/cvsroot/mozilla/js/tests/js1_4/Regress/function-002.js,v  <--  function-002.js
new revision: 1.7; previous revision: 1.6
done
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.