Closed Bug 352016 Opened 18 years ago Closed 18 years ago

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

Categories

(Core :: JavaScript Engine, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bc, Unassigned)

References

()

Details

(Keywords: regression)

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; }
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
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
Closed: 18 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.