add: module threads; read and write binary file supports

This commit is contained in:
hyb1996
2017-12-03 14:13:34 +08:00
parent 1413bf21a5
commit 6fb6e14369
11 changed files with 172 additions and 6 deletions

View File

@@ -49,6 +49,7 @@ var __that__ = this;
var Promise = require('promise.js');
var JSON = require('__json2__.js');
var util = require('__util__.js');
var threads = __runtime__.threads;
var __asGlobal__ = function(obj, functions){
var len = functions.length;

View File

@@ -17,7 +17,7 @@ module.exports = function(__runtime__, scope){
}
engines.myEngine = function(){
return scope.__engine__;
return rtEngines.myEngine();
}
engines.stopAll = rtEngines.stopAll.bind(rtEngines);