You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The version on the main web page and downloaded as the latest release has a bug where it raises an exception when you try to compile a program without providing the 'opt_attribs'
To reproduce: open the tiny.js example and notice it does not work.
Problem seems to be around twgl.js:1823:
} else if (!Array.isArray(opt_attribs)) { var options = opt_attribs;
opt_errorCallback = options.errorCallback;
opt_attrib = options.attribLocations;
}
Quick fix is to check that opt_attribs is defined before checking if it is an array:
} else if (opt_attribs && !Array.isArray(opt_attribs)) {
var options = opt_attribs;
opt_errorCallback = options.errorCallback;
opt_attribs = options.attribLocations;
}
Also, notice that the last line of the conditional block referenced 'opt_attrib' w/o an 's' which I think is a type-o. I assume it should be 'opt_attribs'
The text was updated successfully, but these errors were encountered:
The version on the main web page and downloaded as the latest release has a bug where it raises an exception when you try to compile a program without providing the 'opt_attribs'
To reproduce: open the tiny.js example and notice it does not work.
Problem seems to be around twgl.js:1823:
Quick fix is to check that opt_attribs is defined before checking if it is an array:
Also, notice that the last line of the conditional block referenced 'opt_attrib' w/o an 's' which I think is a type-o. I assume it should be 'opt_attribs'
The text was updated successfully, but these errors were encountered: