Script editor bug, .js file editing, macOS

mschuster

PTeam Member
Nov 27, 2011
1,129
3
San Francisco
Hi Juan,

JavaScript:
// In the Script Editor, edit a .js file containing this text,
// position the cursor immediately prior to the 1,
// then type two backslash characters, i.e., //, in an attempt to comment out the 1 *
// note that backslashes are incorrectly inserted after the *.

function a() {
   this.b = function() {
      return (
         1 *
         2
      );
   };
}
 

Juan Conejero

PTeam Member
Sep 2, 2004
7,374
59
56
Valencia, Spain
pixinsight.com
Hi Mike,

Bug confirmed. I already know it (of course it has happened to me too). It is a bad side effect of the automatic block comment alignment feature of Script Editor (automatic formatting of /* ... */ comments). In this case I must admit that I've been procrastinating :) I'll try to fix this problem as soon as possible, thank you for reporting it.