소스 검색

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;