Not sure if others are seeing this, but here I can reproducibly crash Script Editor by clicking on the disclosure triangle next to an Automation object local variable in the Safari Debugger Scope Chain panel (local or global variables section.
If you are a user of Keyboard Maestro’s Execute JavaScript for Automation actions, running macOS Sierra 10.12.4, and are seeing this too, then probably worth alerting Apple.
Steps to reproduce:
- in Safari, under the (Develop menu item and the local machine name) enable the option:
“Automatically show web inspector for JS Contexts”
(as per https://developer.apple.com/library/content/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/Articles/OSX10-11.html - Run this script, including a
debugger;
line, in Script Editor:
(() => {
'use strict';
var a = Application.currentApplication(),
sa = (a.includeStandardAdditions = true, a);
debugger;
})();
- When the Safari Debugger window appears, click on the disclosure triangle for the
sa
ora
variable in the scope chain (local variables) panel at right. - BANG: here, at least, Script Editor immediately crashes.