Explorar o código

make this work as an es6 module.

We should probably make it an es6 module.
Gregg Tavares %!s(int64=5) %!d(string=hai) anos
pai
achega
63be4938a7
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      threejs/resources/webgl-debug-helper.js

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

@@ -29,7 +29,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-/* global define */
+/* global define, globalThis */
 
 (function(root, factory) {  // eslint-disable-line
   if (typeof define === 'function' && define.amd) {
@@ -41,7 +41,7 @@
     // Browser globals
     root.webglDebugHelper = factory.call(root);
   }
-}(this, function() {
+}(this || globalThis, function() {
   'use strict';  // eslint-disable-line
 
   //------------ [ from https://github.com/KhronosGroup/WebGLDeveloperTools ]