cancel
Showing results for 
Search instead for 
Did you mean: 

If you are targeting newer versions of javascript, set the appropriate language_in option.

0 Kudos

Hi everyone,

I want to use pdf.js library to my project. I have added it to my scripts files but after that when I rebuild the code it gives me an error like this. What is the reason of this error ?

Accepted Solutions (1)

Accepted Solutions (1)

Jerome
Advisor
Advisor

Hi,

There may be some limitations on integrating an external javascript library in a project. The Agent uses the Javascript engine which is natively provided by Windows (JScript 5.8.16384, following the ECMAScript 3 standard). Some useful methods were covered using polyfills, but not all methods from ES5.

You cannot integrate a library if it uses syntax above ECMAScript 3 which is not covered in the SDK by polyfills.

You cannot integrate a library if it uses an anonymous function encapsulating the entire lib.

Some libraries have variables which name is already declared in the SDK. Thus it is not possible to integrate them, unless you update the library to remove these names.

That's why integrating an external library might be a difficult process as you will need to adapt the library so it can be compiled in the solution.

Answers (0)