Project

General

Profile

Actions

Bug #10196

open

doJavaScript() unexpected behavior

Added by Emeric Poupon almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/19/2022
Due date:
% Done:

0%

Estimated time:

Description

Hello,

I have a simple JS code like that:

const foo = XXX;
foo.bar();

Running this twice (or more) using doJavaScript() raises an error saying that "foo" is already defined.
Wrapping the JS code in () solves the issue. Maybe it could be done Wt's side?

No data to display

Actions

Also available in: Atom PDF