@loaders.gl/worker-utils
Advanced tools
Comparing version 4.0.0-beta.3 to 4.0.0-beta.4
@@ -1,2 +0,2 @@ | ||
import { global, isBrowser, isWorker } from "../env-utils/globals.js"; | ||
import { isBrowser, isWorker } from "../env-utils/globals.js"; | ||
import * as node from "../node/require-utils.node.js"; | ||
@@ -62,3 +62,3 @@ import { assert } from "../env-utils/assert.js"; | ||
if (isWorker) { | ||
eval.call(global, scriptSource); | ||
eval.call(globalThis, scriptSource); | ||
return null; | ||
@@ -65,0 +65,0 @@ } |
{ | ||
"name": "@loaders.gl/worker-utils", | ||
"version": "4.0.0-beta.3", | ||
"version": "4.0.0-beta.4", | ||
"description": "Utilities for running tasks on worker threads", | ||
@@ -58,3 +58,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "7ba9621cc51c7a26c407086ac86171f35b8712af" | ||
"gitHead": "848c20b474532d301f2c3f8d4e1fb9bf262b86d4" | ||
} |
/* global importScripts */ | ||
import {global, isBrowser, isWorker} from '../env-utils/globals'; | ||
import {isBrowser, isWorker} from '../env-utils/globals'; | ||
import * as node from '../node/require-utils.node'; | ||
@@ -137,3 +137,3 @@ import {assert} from '../env-utils/assert'; | ||
// Use lvalue trick to make eval run in global scope | ||
eval.call(global, scriptSource); // eslint-disable-line no-eval | ||
eval.call(globalThis, scriptSource); // eslint-disable-line no-eval | ||
// https://stackoverflow.com/questions/9107240/1-evalthis-vs-evalthis-in-javascript | ||
@@ -140,0 +140,0 @@ // http://perfectionkills.com/global-eval-what-are-the-options/ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
326997