Details
-
Task
-
Resolution: Out of scope
-
P2: Important
-
None
-
None
Description
Some 3rd party JavaScript libraries assume the existence of certain constructor functions (eg, function Image(..)
{ ... }). These functions are usually provided by the browser's JavaScript environment. If we want to allow such libraries to be imported without requiring modification, we need some way to allow modification of the evaluation context, so that these functions can be provided.
Phases:
1) Research various possibilities which allow this:
- allow "unqualified" JavaScript import – uses the parent context as the evaluation context, thereby allowing symbols / functions to be added to the evaluation scope
- add a "with" syntax or similar to import statements – provide a second JavaScript file which provides/sets up the evaluation context
- something else
2) Develop prototype implementation
3) Test and document the feature
Attachments
Issue Links
- relates to
-
QTBUG-22356 Investigate support for 3rd party JS libraries
-
- Closed
-