ES5 static getter fix

This commit is contained in:
Joshua Granick
2017-12-12 13:39:01 -08:00
parent 0407e885db
commit 9f5520b23d

View File

@@ -665,8 +665,8 @@ class GL {
private static function __init__ () {
untyped Object.defineProperties (GL, {
"type": { get: GL.get_type },
"version": { get: GL.get_version }
"type": { get: function () { return GL.get_type (); } },
"version": { get: function () { return GL.get_version (); } }
});
}