Skip to content

Commit

Permalink
Remove problematic charCodeAt usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Jul 19, 2023
1 parent 33f8f3e commit 3e12f07
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/examples/Example_Script.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sb.append("Widgets JavaScript results:\n");
sb.append("\n");
sb.append("\tboolean = " + pBoolean + "\n");
sb.append("\tbyte = " + pByte + "\n");
sb.append("\tchar = " + "'" + pChar + "' [" + pChar.charCodeAt(0) + "]\n");
sb.append("\tchar = " + "'" + pChar + "'\n");
sb.append("\tdouble = " + pDouble + "\n");
sb.append("\tfloat = " + pFloat + "\n");
sb.append("\tint = " + pInt + "\n");
Expand All @@ -46,8 +46,7 @@ sb.append("\tshort = " + pShort + "\n");
sb.append("\n");
sb.append("\tBoolean = " + oBoolean + "\n");
sb.append("\tByte = " + oByte + "\n");
oCharValue = oCharacter == null ? "null" : "" + oCharacter.charCodeAt(0);
sb.append("\tCharacter = " + "'" + oCharacter + "' [" + oCharValue + "]\n");
sb.append("\tCharacter = " + "'" + oCharacter + "'\n");
sb.append("\tDouble = " + oDouble + "\n");
sb.append("\tFloat = " + oFloat + "\n");
sb.append("\tInteger = " + oInteger + "\n");
Expand Down

0 comments on commit 3e12f07

Please sign in to comment.