Closed Bug 785294 Opened 13 years ago Closed 12 years ago

undefined evaluates as true in self-hosted code

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 784293

People

(Reporter: mozillabugs, Unassigned)

References

Details

(Whiteboard: [js:p3])

The following code within self-hosted JavaScript prints "undefined is true": var print = %GetBuiltIn("print"); if (undefined) { print("undefined is true"); } else { print("undefined is false"); } (%GetBuiltIn is a new intrinsic that gets the named property from the global object.)
Blocks: 769872
Whiteboard: [js:p2]
Whiteboard: [js:p2] → [js:p3]
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.