mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
JS -- Add a sandbox based on quickjs
* quickjs-eval.js has been generated using https://github.com/mozilla/pdf.js.quickjs/ * lazy load of sandbox code * Rewrite tests to use the sandbox * Add a task `watch-sandbox` which update bundle pdf.sandbox.js on change in the sandbox code
This commit is contained in:
parent
d3936ac9d2
commit
c7974e9996
15 changed files with 886 additions and 245 deletions
|
@ -49,6 +49,9 @@ class Util extends PDFObject {
|
|||
}
|
||||
|
||||
crackURL(cURL) {
|
||||
if (typeof cURL !== "string") {
|
||||
throw new TypeError("First argument of util.crackURL must be a string");
|
||||
}
|
||||
return this._crackURL(cURL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue