Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScriptproperty descriptorsSingle-choice MCQ

Why does this defineProperty call throw, according to the descriptor validation algorithm?

Object.defineProperty({}, 'b', { get() { return 1; }, value: 1 });