Does the current JS environment have strict mode? ES5+ should; but let's not assume.
github.com/inspect-js/has-strict-mode
inspect-js/has-strict-mode