diff --git a/src/display/api.js b/src/display/api.js index 815e7ee23..cec2f2fdb 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -159,7 +159,7 @@ const RENDERING_CANCELLED_TIMEOUT = 100; // ms * Use -1 for no limit, which is also the default value. * @property {boolean} [isEvalSupported] - Determines if we can evaluate strings * as JavaScript. Primarily used to improve performance of PDF functions. - * The default value is `true`. + * The default value is `false`. * @property {boolean} [isOffscreenCanvasSupported] - Determines if we can use * `OffscreenCanvas` in the worker. Primarily used to improve performance of * image conversion/rendering. @@ -289,7 +289,7 @@ function getDocument(src = {}) { Number.isInteger(src.maxImageSize) && src.maxImageSize > -1 ? src.maxImageSize : -1; - const isEvalSupported = src.isEvalSupported !== false; + const isEvalSupported = src.isEvalSupported === true; const isOffscreenCanvasSupported = typeof src.isOffscreenCanvasSupported === "boolean" ? src.isOffscreenCanvasSupported diff --git a/web/app_options.js b/web/app_options.js index a21f088b9..43ed2f430 100644 --- a/web/app_options.js +++ b/web/app_options.js @@ -419,7 +419,7 @@ const defaultOptions = { }, isEvalSupported: { /** @type {boolean} */ - value: true, + value: false, kind: OptionKind.API, }, isOffscreenCanvasSupported: {