You should verify that `degree` is defined. This is old code so that's why it wasn't there already.

```
        //>>includeStart('debug', pragmas.debug);
        if (!defined(degree)) {
            throw new DeveloperError('degree is required');
        }
        //>>includeEnd('debug');
```