Commit 1ef1fdb8 authored by rockyl's avatar rockyl

增加scope

parent b2b6d191
...@@ -50,7 +50,7 @@ class ProcessManager { ...@@ -50,7 +50,7 @@ class ProcessManager {
return `/*== ${id} ==*/` return `/*== ${id} ==*/`
}).join('\n'); }).join('\n');
scripts += ` scripts += `
exports['${hash}'] = function(args, props, target, global, vm){ exports['${hash}'] = function(args, props, target, global, vm, scope){
return new Promise(function(resolve, reject){ return new Promise(function(resolve, reject){
${idsComment} ${idsComment}
......
This diff is collapsed.
...@@ -56,7 +56,7 @@ class ProcessManager { ...@@ -56,7 +56,7 @@ class ProcessManager {
return `/*== ${id} ==*/` return `/*== ${id} ==*/`
}).join('\n'); }).join('\n');
scripts += ` scripts += `
exports['${hash}'] = function(args, props, target, global, vm){ exports['${hash}'] = function(args, props, target, global, vm, scope){
return new Promise(function(resolve, reject){ return new Promise(function(resolve, reject){
${idsComment} ${idsComment}
......
This diff is collapsed.
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
return `/*== ${id} ==*/` return `/*== ${id} ==*/`
}).join('\n'); }).join('\n');
scripts += ` scripts += `
exports['${hash}'] = function(args, props, target, global, vm){ exports['${hash}'] = function(args, props, target, global, vm, scope){
return new Promise(function(resolve, reject){ return new Promise(function(resolve, reject){
${idsComment} ${idsComment}
......
This diff is collapsed.
...@@ -50,7 +50,7 @@ export default class ProcessManager { ...@@ -50,7 +50,7 @@ export default class ProcessManager {
return `/*== ${id} ==*/` return `/*== ${id} ==*/`
}).join('\n'); }).join('\n');
scripts += ` scripts += `
exports['${hash}'] = function(args, props, target, global, vm){ exports['${hash}'] = function(args, props, target, global, vm, scope){
return new Promise(function(resolve, reject){ return new Promise(function(resolve, reject){
${idsComment} ${idsComment}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment