Sfoglia il codice sorgente

Fix IE8 one more time

Vladislav Folts 11 anni fa
parent
commit
a920f82045
2 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 8 0
      src/rtl.js
  2. 1 1
      test/build_test_unit_browser.cmd

+ 8 - 0
src/rtl.js

@@ -1,5 +1,13 @@
 "use strict";
 
+if (typeof Uint16Array == "undefined"){
+    GLOBAL.Uint16Array = function(length){
+        Array.call(this, length);
+        for(var i = 0; i < length; ++i)
+            this[i] = 0;
+    };
+}
+
 function Class(){}
 Class.extend = function extend(methods){
         function Type(){

+ 1 - 1
test/build_test_unit_browser.cmd

@@ -1 +1 @@
-..\browser\linkjs.py -I../src test_unit.js test_unit_browser.js
+..\browser\linkjs.py -I../src -I../src/oberon.js test_unit.js test_unit_browser.js