mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Merge pull request #16305 from Snuffleupagus/PDFJSDev-skip-PRODUCTION
Remove the `PRODUCTION` build-target
This commit is contained in:
commit
c9359957e6
31 changed files with 89 additions and 269 deletions
|
@ -452,10 +452,7 @@ function createValidAbsoluteUrl(url, baseUrl = null, options = null) {
|
|||
}
|
||||
|
||||
function shadow(obj, prop, value, nonSerializable = false) {
|
||||
if (
|
||||
typeof PDFJSDev === "undefined" ||
|
||||
PDFJSDev.test("!PRODUCTION || TESTING")
|
||||
) {
|
||||
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING")) {
|
||||
assert(
|
||||
prop in obj,
|
||||
`shadow: Property "${prop && prop.toString()}" not found in object.`
|
||||
|
@ -574,10 +571,7 @@ function stringToBytes(str) {
|
|||
}
|
||||
|
||||
function string32(value) {
|
||||
if (
|
||||
typeof PDFJSDev === "undefined" ||
|
||||
PDFJSDev.test("!PRODUCTION || TESTING")
|
||||
) {
|
||||
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING")) {
|
||||
assert(
|
||||
typeof value === "number" && Math.abs(value) < 2 ** 32,
|
||||
`string32: Unexpected input "${value}".`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue