summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-11-25 02:30:17 +0800
committerGitHub <noreply@github.com>2020-11-24 19:30:17 +0100
commit3fed85437b981a01cc368166841d9d89d99434f0 (patch)
treeb5a1bacbde371771c3d171249bdb03deba073753
parentd2c6ac4750ffc60631fee2170c7ee4a884210225 (diff)
downloadNim-3fed85437b981a01cc368166841d9d89d99434f0.tar.gz
ref #16054 remove typed array (#16077)
-rw-r--r--compiler/jsgen.nim8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index 3a1ef7fbb..675a24c92 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -2598,14 +2598,6 @@ proc genHeader(): Rope =
     var framePtr = null;
     var excHandler = 0;
     var lastJSError = null;
-    if (typeof Int8Array === 'undefined') Int8Array = Array;
-    if (typeof Int16Array === 'undefined') Int16Array = Array;
-    if (typeof Int32Array === 'undefined') Int32Array = Array;
-    if (typeof Uint8Array === 'undefined') Uint8Array = Array;
-    if (typeof Uint16Array === 'undefined') Uint16Array = Array;
-    if (typeof Uint32Array === 'undefined') Uint32Array = Array;
-    if (typeof Float32Array === 'undefined') Float32Array = Array;
-    if (typeof Float64Array === 'undefined') Float64Array = Array;
   """.unindent.format(VersionAsString))
 
 proc addHcrInitGuards(p: PProc, n: PNode,