Rule for using defineProperty

This rule shouldn't be violated when using the defineProperty trap:

  • It must return false if the target object is not-extensible, and the property doesn't yet exist

Get Learn ECMAScript - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.