Skip to content

Commit

Permalink
es5 check
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Aug 18, 2021
1 parent 35647e9 commit 08ce118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/attribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ module.exports = function wrapAttributeState (
vao.primitive = primitives[options.primitive]
}

check.optional(() => {
check.optional(function() {
var keys = Object.keys(options)
for (var i = 0; i < keys.length; ++i) {
check(VAO_OPTIONS.indexOf(keys[i]) >= 0, 'invalid option for vao: "' + keys[i] + '" valid options are ' + VAO_OPTIONS)
Expand Down

0 comments on commit 08ce118

Please sign in to comment.