Use goog.asserts.fail

This commit is contained in:
Tom Payne
2013-04-08 19:10:04 +02:00
parent 098bddb72f
commit e132943eef
7 changed files with 7 additions and 7 deletions

View File

@@ -610,7 +610,7 @@ ol.projection.getTransformFromProjections =
ol.projection.identityTransform = function(input, opt_output, opt_dimension) {
if (goog.isDef(opt_output) && input !== opt_output) {
// TODO: consider making this a warning instead
goog.asserts.assert(false, 'This should not be used internally.');
goog.asserts.fail('This should not be used internally.');
for (var i = 0, ii = input.length; i < ii; ++i) {
opt_output[i] = input[i];
}