소스 검색

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