diff --git a/Source/Core/PolygonGeometry.js b/Source/Core/PolygonGeometry.js index 4526b34ebbcd..479a6e5ac329 100644 --- a/Source/Core/PolygonGeometry.js +++ b/Source/Core/PolygonGeometry.js @@ -559,7 +559,7 @@ define([ function PolygonGeometry(options) { //>>includeStart('debug', pragmas.debug); Check.typeOf.object('options', options); - Check.typeOf.object('options.polygonHierarchy'); + Check.typeOf.object('options.polygonHierarchy', options.polygonHierarchy); if (defined(options.perPositionHeight) && options.perPositionHeight && defined(options.height)) { throw new DeveloperError('Cannot use both options.perPositionHeight and options.height'); } diff --git a/Source/Core/PolygonOutlineGeometry.js b/Source/Core/PolygonOutlineGeometry.js index 80b85896de1d..f24eee42c43f 100644 --- a/Source/Core/PolygonOutlineGeometry.js +++ b/Source/Core/PolygonOutlineGeometry.js @@ -289,7 +289,7 @@ define([ function PolygonOutlineGeometry(options) { //>>includeStart('debug', pragmas.debug); Check.typeOf.object('options', options); - Check.typeOf.object('options.polygonHierarchy'); + Check.typeOf.object('options.polygonHierarchy', options.polygonHierarchy); if (defined(options.perPositionHeight) && options.perPositionHeight && defined(options.height)) { throw new DeveloperError('Cannot use both options.perPositionHeight and options.height');