Skip to content

Commit

Permalink
Merge pull request #5426 from AnimatedRNG/geometry-check
Browse files Browse the repository at this point in the history
Replaces DeveloperError(s) with Check(s) in Geometry
  • Loading branch information
lilleyse authored Jun 6, 2017
2 parents 7b5675e + f697b26 commit bb8989c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Source/Core/Geometry.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
/*global define*/
define([
'./Check',
'./defaultValue',
'./defined',
'./DeveloperError',
'./GeometryType',
'./PrimitiveType'
], function(
Check,
defaultValue,
defined,
DeveloperError,
Expand Down Expand Up @@ -67,9 +69,7 @@ define([
options = defaultValue(options, defaultValue.EMPTY_OBJECT);

//>>includeStart('debug', pragmas.debug);
if (!defined(options.attributes)) {
throw new DeveloperError('options.attributes is required.');
}
Check.typeOf.object('options.attributes', options.attributes);
//>>includeEnd('debug');

/**
Expand Down Expand Up @@ -173,9 +173,7 @@ define([
*/
Geometry.computeNumberOfVertices = function(geometry) {
//>>includeStart('debug', pragmas.debug);
if (!defined(geometry)) {
throw new DeveloperError('geometry is required.');
}
Check.typeOf.object('geometry', geometry);
//>>includeEnd('debug');

var numberOfVertices = -1;
Expand Down

0 comments on commit bb8989c

Please sign in to comment.