Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardNodeJSV8 hidden classesSingle-choice MCQ

A function reads `point.x` where `point` is sometimes `{x,y}` and sometimes `{x,y,z}` (two distinct hidden classes). What state does the inline cache (IC) at that property-load site reach, and what's the consequence?

function getX(point) { return point.x; } getX({ x: 1, y: 2 }); getX({ x: 1, y: 2, z: 3 });