replace system timer with doric timer when debug
This commit is contained in:
@@ -21,6 +21,10 @@ let context = process.cwd() + '/build/context';
|
||||
const contextId = fs.readFileSync(context, { encoding: 'utf8' });
|
||||
console.log("debugging context id: " + contextId);
|
||||
let global = new Function('return this')();
|
||||
global.setTimeout = global.doricSetTimeout;
|
||||
global.setInterval = global.doricSetInterval;
|
||||
global.clearTimeout = global.doricClearTimeout;
|
||||
global.clearInterval = global.doricClearInterval;
|
||||
global.doric = doric;
|
||||
global.context = doric.jsObtainContext(contextId);
|
||||
global.Entry = doric.jsObtainEntry(contextId);
|
||||
|
Reference in New Issue
Block a user