We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd80f2a commit 1c7f0a8Copy full SHA for 1c7f0a8
api.js
@@ -238,8 +238,8 @@ forEach({
238
sig.push(type.name);
239
fullArgs.push(type.name + " " + arg);
240
if (type.name.substr(0, 5) === "WebGL") {
241
- cargs.push(arg + "._");
242
- check.push(arg + " instanceof " + type.name);
+ cargs.push(arg + " ? " + arg + "._ : 0");
+ check.push("(" + arg + " === null || " + arg + " instanceof " + type.name + ")");
243
} else {
244
cargs.push(arg);
245
check.push("typeof " + arg + ' === "object"');
0 commit comments