1 2 3 4 5 6 7 8
(function(window) { if (!('errorOnAccess' in window)) throw Error(); window.test = 'result of global-inaccessible-props'; })(typeof window != 'undefined' ? window : global);