Chromium C++ assert warning in JavaScript code

WebGPU C++ warning

I get a console warning in unrelated JS code.

Ignoring the warning, all JS code continues to run without any apparent problems, however I do not want this to appear in the console.

My question is

Is there a work around that stops the warning from appearing in the console?

Details

Chrome Version 129.0.6668.71 (Official Build) (64-bit)

JavaScript source code and line numbers when warning appears

164        createAtlas() {
165            if (this.sprites) {
166                const atlas = new Uint32Array(this.sprites.length * 2);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
  • Note That the warning appears when I step over line 165, but line 166 has not yet been executed.

  • Note All created textures up to this point have CopyDst set and only textures that (are/will) be rendered to have RenderAttachment usage flags set.

  • Note The warning can not be caught via a try catch.

Warning as copied from console.

SpriteSheets.js:166 Destination texture needs to have CopyDst and RenderAttachment usage.
    at APIInjectError2 (....third_partydawnsrcdawnnativeDevice.cpp:2023)
        createAtlas @       SpriteSheets.js:166
        buildAllSprites @   batchSprites.js:34
        await in buildAllSprites        
        main @              webGPUTest2.js:73
        await in main       
        (anonymous) @       webGPUTest2.js:26