Rule for using isExtensible trap

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

  • You cannot return false if the target is extensible. Similarly, you cannot return true if the target is non-extensible

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.