Rule for using preventExtensions trap

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

  • This trap can return true only if the target is non-extensible or it has made the target 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.