The ShadowRealm API: total JavaScript isolation on one thread
The ShadowRealm API is a TC39 proposal for running JavaScript in a fully isolated environment on the same thread. For WordPress and WooCommerce work, it means third-party scripts can no longer pollute the global scope or break core functionality.