Rules for using set trap

These rules shouldn't be violated when using the set trap:

  • If the target object property is a non-writable, non-configurable data property, then it will return as false--that is, you cannot change the property value
  • If the target object property is a non-configurable accessor property that has undefined as its [[Set]] attribute, then it will return as false--that is, you cannot change the property value
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.89.18