mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Use Array.isArray in the LoopbackPort.
This commit is contained in:
parent
cb10c03d0a
commit
438c0b28f2
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
import {
|
||||
assert, createPromiseCapability, deprecated, getVerbosityLevel,
|
||||
info, InvalidPDFException, isArray, isArrayBuffer, isInt, isSameOrigin,
|
||||
info, InvalidPDFException, isArrayBuffer, isInt, isSameOrigin,
|
||||
loadJpegStream, MessageHandler, MissingPDFException, NativeImageDecoding,
|
||||
PageViewport, PasswordException, StatTimer, stringToBytes,
|
||||
UnexpectedResponseException, UnknownErrorException, Util, warn
|
||||
|
@ -1183,7 +1183,7 @@ class LoopbackPort {
|
|||
cloned.set(value, result);
|
||||
return result;
|
||||
}
|
||||
result = isArray(value) ? [] : {};
|
||||
result = Array.isArray(value) ? [] : {};
|
||||
cloned.set(value, result); // adding to cache now for cyclic references
|
||||
// Cloning all value and object properties, however ignoring properties
|
||||
// defined via getter.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue