Project

General

Profile

Actions

Bug #12006

closed

Missing semicolon in setJavaScriptMember followed by callJavaScript may cause JS issues

Added by Matthias Van Ceulebroeck over 1 year ago. Updated over 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

Updated by Bruce MacDonald over 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

Also available in: Atom PDF