The “Object doesn’t support this property or method” error is displayed when I use a certain method of JavaScript in my macros. Why?
Many new methods in modern JavaScript/ECMAScript are not available in EmEditor. EmEditor macros by default use JScript 5.8 (equivalent to Internet Explorer 8.0), thus newer methods introduced after JScript 5.8 are not supported in EmEditor macros. The Replace Expressions use Chakra (equivalent to Microsoft Edge Legacy), and support up to ECMAScript 5.1, thus newer methods introduced after ECMAScript 5.1 are not supported.
The newer v8 engine supports the latest ECMAScript standards as long as your Windows OS is updated.