From 438c0b28f212dbf68e695006b677716d5c18025e Mon Sep 17 00:00:00 2001
From: Yury Delendik <ydelendik@mozilla.com>
Date: Tue, 22 Aug 2017 17:50:27 -0500
Subject: [PATCH] Use Array.isArray in the LoopbackPort.

---
 src/display/api.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/display/api.js b/src/display/api.js
index 2515eedea..3f4b5101f 100644
--- a/src/display/api.js
+++ b/src/display/api.js
@@ -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.