|
@@ -109,18 +109,7 @@ var rtl = {
|
|
},
|
|
},
|
|
|
|
|
|
exitcode: 0,
|
|
exitcode: 0,
|
|
- // Create needed polyfills for the rtl to run.
|
|
|
|
-
|
|
|
|
- createPolyFills : function () {
|
|
|
|
- if (!Math.trunc) {
|
|
|
|
- Math.trunc = function(v) {
|
|
|
|
- v = +v;
|
|
|
|
- if (!isFinite(v)) return v;
|
|
|
|
- return (v - v % 1) || (v < 0 ? -0 : v === 0 ? v : 0);
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
|
|
+
|
|
run: function(module_name){
|
|
run: function(module_name){
|
|
|
|
|
|
function doRun(){
|
|
function doRun(){
|
|
@@ -138,8 +127,6 @@ var rtl = {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- rtl.createPolyFills();
|
|
|
|
-
|
|
|
|
if (rtl.showUncaughtExceptions) {
|
|
if (rtl.showUncaughtExceptions) {
|
|
try{
|
|
try{
|
|
doRun();
|
|
doRun();
|