
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
webgl-debug
Advanced tools
WebGL Debug Utils. This is a node port of WebGLDeveloperTools by Khronos Group.
var WebGLDebugUtil = require('webgl-debug');
Get error code string representation.
var WebGLDebugUtil = require('webgl-debug');
var str = WebGLDebugUtil.glEnumToString(gl.getError());
Create debug context that will throw error on invalid WebGL operation.
var WebGLDebugUtil = require('webgl-debug');
function throwOnGLError(err, funcName, args) {
throw WebGLDebugUtils.glEnumToString(err)
+ "was caused by call to "
+ funcName;
};
gl = WebGLDebugUtils.makeDebugContext(gl, throwOnGLError);
Initializes this module. Safe to call more than once.
Returns true or false if value matches any WebGL enum
Gets an string version of an WebGL enum.
Converts the argument of a WebGL function to a string
Converts the arguments of a WebGL function to a string.
returns a wrapped context that calls gl.getError after every command and calls a function if the result is not NO_ERROR
returns a wrapped canvas element that will simulate lost context
Resets a context to the initial state
MIT, see LICENSE.md for details.
FAQs
WebGL Debug Utils
The npm package webgl-debug receives a total of 8,521 weekly downloads. As such, webgl-debug popularity was classified as popular.
We found that webgl-debug demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.