Throw when calling abstract methods; fix abstract return types

This commit is contained in:
ahocevar
2018-10-30 18:45:42 +01:00
parent 2adac0b3e7
commit 1cdd040c96
22 changed files with 273 additions and 85 deletions

View File

@@ -1,6 +1,7 @@
/**
* @module ol/webgl/Shader
*/
import {abstract} from '../util.js';
/**
* @abstract
@@ -31,7 +32,9 @@ class WebGLShader {
* @abstract
* @return {number} Type.
*/
getType() {}
getType() {
return abstract();
}
/**
* @return {string} Source.