markshannon · GitHub

Feature or enhancement

Proposal:

DELETE_GLOBAL could be removed by making STORE_GLOBAL handle a NULL value and replacing DELETE_GLOBAL with PUSH_NULL; STORE_GLOBAL.

This wouldn't have an effect on performance or code size, as STORE_GLOBAL would also need to do the job of DELETE_GLOBAL but it would free up an opcode for future use. Also, once #145854 and #145855 are implemented, it would make the bytecode for deletion more consistent.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Linked PRs

Read the original on github.com ↗