瀏覽代碼

Fix IE8 one more time

Vladislav Folts 11 年之前
父節點
當前提交
a920f82045
共有 2 個文件被更改,包括 9 次插入1 次删除
  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