aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/common/whwasmutil.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-06-26 07:05:05 +0000
committerstephan <stephan@noemail.net>2023-06-26 07:05:05 +0000
commitb9561384d088f5739aff806e99e86097c295bfba (patch)
tree0ca55c0b7cc1b7420b83f83d8ad0b9b33367f22e /ext/wasm/common/whwasmutil.js
parentd2b9cdd592e407fd3b086285cc76d6011ed7d7fa (diff)
downloadsqlite-b9561384d088f5739aff806e99e86097c295bfba.tar.gz
sqlite-b9561384d088f5739aff806e99e86097c295bfba.zip
Replace some JS 'self' references with 'globalThis', as reported via the npm subproject.
FossilOrigin-Name: d4e66dfc2e87112fa73a9c64db358429d88fb2ab3a08908b0eb655f6ed42f94b
Diffstat (limited to 'ext/wasm/common/whwasmutil.js')
-rw-r--r--ext/wasm/common/whwasmutil.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/wasm/common/whwasmutil.js b/ext/wasm/common/whwasmutil.js
index 489979941..aea484787 100644
--- a/ext/wasm/common/whwasmutil.js
+++ b/ext/wasm/common/whwasmutil.js
@@ -174,7 +174,7 @@
globalThis.WhWasmUtilInstaller = function(target){
'use strict';
if(undefined===target.bigIntEnabled){
- target.bigIntEnabled = !!self['BigInt64Array'];
+ target.bigIntEnabled = !!globalThis['BigInt64Array'];
}
/** Throws a new Error, the message of which is the concatenation of
@@ -355,8 +355,8 @@ globalThis.WhWasmUtilInstaller = function(target){
break;
default:
if(target.bigIntEnabled){
- if(n===self['BigUint64Array']) return c.HEAP64U;
- else if(n===self['BigInt64Array']) return c.HEAP64;
+ if(n===globalThis['BigUint64Array']) return c.HEAP64U;
+ else if(n===globalThis['BigInt64Array']) return c.HEAP64;
break;
}
}