Closed Bug 1319979 Opened 9 years ago Closed 7 years ago

Equality comparisons

Categories

(Developer Documentation Graveyard :: JavaScript, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ahertaylor, Unassigned)

Details

(Whiteboard: [specification][type:bug])

What did you do? ================ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness In the table " Sameness Comparisons", there is a row which contains {foo: "bar"} (for colum x) and x (for column y). Not sure what this means. What happened? ============== See above. What should have happened? ========================== See above. Is there anything else we should know? ======================================
it's the case for the following code var x = {foo: "bar"}; var y = x; console.log(x == y); // true console.log(x === y); // true console.log(Object.is(x, y)); // true
Component: Wiki pages → JavaScript
Product: Mozilla Developer Network → Developer Documentation
The mentioned row no longer appears in the table, nor do any rows where x appears in the y column. Hopefully, the table is clearer now.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.