@@ -4,7 +4,7 @@ import defined from "../Core/defined.js";
44import destroyObject from "../Core/destroyObject.js" ;
55import DeveloperError from "../Core/DeveloperError.js" ;
66import Ellipsoid from "../Core/Ellipsoid.js" ;
7- import getStringFromTypedArray from "../Core/getStringFromTypedArray .js" ;
7+ import getJsonFromTypedArray from "../Core/getJsonFromTypedArray .js" ;
88import ComponentDatatype from "../Core/ComponentDatatype.js" ;
99import CesiumMath from "../Core/Math.js" ;
1010import Matrix4 from "../Core/Matrix4.js" ;
@@ -297,12 +297,11 @@ function initialize(content, arrayBuffer, byteOffset) {
297297 var pointsPositionByteLength = view . getUint32 ( byteOffset , true ) ;
298298 byteOffset += sizeOfUint32 ;
299299
300- var featureTableString = getStringFromTypedArray (
300+ var featureTableJson = getJsonFromTypedArray (
301301 uint8Array ,
302302 byteOffset ,
303303 featureTableJSONByteLength
304304 ) ;
305- var featureTableJson = JSON . parse ( featureTableString ) ;
306305 byteOffset += featureTableJSONByteLength ;
307306
308307 var featureTableBinary = new Uint8Array (
@@ -320,12 +319,11 @@ function initialize(content, arrayBuffer, byteOffset) {
320319 //
321320 // We could also make another request for it, but that would make the property set/get
322321 // API async, and would double the number of numbers in some cases.
323- var batchTableString = getStringFromTypedArray (
322+ batchTableJson = getJsonFromTypedArray (
324323 uint8Array ,
325324 byteOffset ,
326325 batchTableJSONByteLength
327326 ) ;
328- batchTableJson = JSON . parse ( batchTableString ) ;
329327 byteOffset += batchTableJSONByteLength ;
330328
331329 if ( batchTableBinaryByteLength > 0 ) {
0 commit comments