Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
4c6acdb5
Commit
4c6acdb5
authored
Dec 13, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add and use init in executioncontext
parent
de1ab8fc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
app.js
src/app.js
+1
-0
execution-context.js
src/execution-context.js
+10
-1
No files found.
src/app.js
View file @
4c6acdb5
...
@@ -109,6 +109,7 @@ class App {
...
@@ -109,6 +109,7 @@ class App {
self
.
_api
=
{}
self
.
_api
=
{}
var
fileStorage
=
new
Storage
(
'sol:'
)
var
fileStorage
=
new
Storage
(
'sol:'
)
self
.
_api
.
config
=
new
Config
(
fileStorage
)
self
.
_api
.
config
=
new
Config
(
fileStorage
)
executionContext
.
init
(
self
.
_api
.
config
)
self
.
_api
.
filesProviders
=
{}
self
.
_api
.
filesProviders
=
{}
self
.
_api
.
filesProviders
[
'browser'
]
=
new
Browserfiles
(
fileStorage
)
self
.
_api
.
filesProviders
[
'browser'
]
=
new
Browserfiles
(
fileStorage
)
self
.
_api
.
filesProviders
[
'localhost'
]
=
new
SharedFolder
(
new
Remixd
())
self
.
_api
.
filesProviders
[
'localhost'
]
=
new
SharedFolder
(
new
Remixd
())
...
...
src/execution-context.js
View file @
4c6acdb5
...
@@ -82,7 +82,16 @@ var mainNetGenesisHash = '0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec
...
@@ -82,7 +82,16 @@ var mainNetGenesisHash = '0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec
function
ExecutionContext
()
{
function
ExecutionContext
()
{
var
self
=
this
var
self
=
this
this
.
event
=
new
EventManager
()
this
.
event
=
new
EventManager
()
var
executionContext
=
'vm'
var
executionContext
=
null
this
.
init
=
function
(
config
)
{
if
(
config
.
get
(
'settings/always-use-vm'
))
{
executionContext
=
'vm'
}
else
{
executionContext
=
injectedProvider
?
'injected'
:
'vm'
}
}
this
.
getProvider
=
function
()
{
this
.
getProvider
=
function
()
{
return
executionContext
return
executionContext
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment