Commit 1ef1fdb8 authored by rockyl's avatar rockyl

增加scope

parent b2b6d191
......@@ -50,7 +50,7 @@ class ProcessManager {
return `/*== ${id} ==*/`
}).join('\n');
scripts += `
exports['${hash}'] = function(args, props, target, global, vm){
exports['${hash}'] = function(args, props, target, global, vm, scope){
return new Promise(function(resolve, reject){
${idsComment}
......
This diff is collapsed.
......@@ -56,7 +56,7 @@ class ProcessManager {
return `/*== ${id} ==*/`
}).join('\n');
scripts += `
exports['${hash}'] = function(args, props, target, global, vm){
exports['${hash}'] = function(args, props, target, global, vm, scope){
return new Promise(function(resolve, reject){
${idsComment}
......
This diff is collapsed.
......@@ -56,7 +56,7 @@
return `/*== ${id} ==*/`
}).join('\n');
scripts += `
exports['${hash}'] = function(args, props, target, global, vm){
exports['${hash}'] = function(args, props, target, global, vm, scope){
return new Promise(function(resolve, reject){
${idsComment}
......
This diff is collapsed.
......@@ -50,7 +50,7 @@ export default class ProcessManager {
return `/*== ${id} ==*/`
}).join('\n');
scripts += `
exports['${hash}'] = function(args, props, target, global, vm){
exports['${hash}'] = function(args, props, target, global, vm, scope){
return new Promise(function(resolve, reject){
${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