Closed
Bug 785294
Opened 13 years ago
Closed 12 years ago
undefined evaluates as true in self-hosted code
Categories
(Core :: JavaScript Engine, defect)
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.)
Updated•13 years ago
|
Whiteboard: [js:p2]
Updated•13 years ago
|
Whiteboard: [js:p2] → [js:p3]
Updated•12 years ago
|
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.
Description
•