Project

General

Profile

Actions

Bug #12006

closed

Missing semicolon in setJavaScriptMember followed by callJavaScript may cause JS issues

Added by Matthias Van Ceulebroeck about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
10/06/2023
Due date:
% Done:

100%

Estimated time:

Description

When calling a setJavaScriptMember, followed by another JS call, like callJavascript. There is the potential for a JS error, if the member call isn't ended with a semi-colon, or the call isn't started with a semicolon.

If the order were reversed this could just as well be an issue.


Files

Picture2.png (12.7 KB) Picture2.png Exception Location Bruce MacDonald, 11/10/2023 10:31 AM
Picture1.png (31.4 KB) Picture1.png Console Message Bruce MacDonald, 11/10/2023 10:31 AM

Related issues 1 (0 open1 closed)

Related to Bug #12143: Fix for 12006 causes exception.ClosedMatthias Van Ceulebroeck11/10/2023

Actions
Actions #1

Updated by Matthias Van Ceulebroeck about 1 year ago

  • Status changed from InProgress to Review
  • Assignee deleted (Matthias Van Ceulebroeck)
Actions #2

Updated by Matthias Van Ceulebroeck about 1 year ago

  • Assignee set to Marnik Roosen
Actions #3

Updated by Matthias Van Ceulebroeck about 1 year ago

  • Status changed from Review to Resolved
  • Assignee changed from Marnik Roosen to Matthias Van Ceulebroeck
Actions #4

Updated by Matthias Van Ceulebroeck about 1 year ago

  • Status changed from Resolved to Implemented @Emweb
  • % Done changed from 0 to 100
Actions #5

Updated by Matthias Van Ceulebroeck about 1 year ago

  • Status changed from Implemented @Emweb to Closed

Updated by Bruce MacDonald about 1 year ago

This appears to break my code. I get a popup with "Wt internal error; code: undefined, description: Unexpected token ';'"

Please see attached screenshots. I do not know how to dump the value of the "js" variable which presumably is causing the problem in eval(). If you let me know where to find instructions I can have a go at dumping it.

Exception Location
Console Message

Actions #7

Updated by Matthias Van Ceulebroeck about 1 year ago

  • Related to Bug #12143: Fix for 12006 causes exception. added
Actions

Also available in: Atom PDF