瀏覽代碼

not iterable fix

Gregg Tavares 5 年之前
父節點
當前提交
8ca9514ad6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      threejs/resources/webgl-debug-helper.js

+ 1 - 1
threejs/resources/webgl-debug-helper.js

@@ -544,7 +544,7 @@
     // Override the getError function with one that returns our saved results.
     if (wrapper.getError) {
       wrapper.getError = function() {
-        for (const err of glErrorShadow) {
+        for (const err of Object.keys(glErrorShadow)) {
           if (glErrorShadow[err]) {
             glErrorShadow[err] = false;
             return err;