Factor out code to call JS_DeletePropertyById2.
Implement the delete trap.