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
5016f780
Unverified
Commit
5016f780
authored
Jan 03, 2018
by
yann300
Committed by
GitHub
Jan 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #976 from ethereum/fixConsole
Various Fix in Console
parents
70546d72
f7bd7789
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
terminal.js
src/app/panels/terminal.js
+10
-2
No files found.
src/app/panels/terminal.js
View file @
5016f780
...
...
@@ -687,7 +687,7 @@ class Terminal {
try
{
var
cmds
=
vm
.
createContext
(
Object
.
assign
(
self
.
_jsSandboxContext
,
context
))
var
result
=
vm
.
runInContext
(
script
,
cmds
)
self
.
_jsSandboxContext
=
Object
.
assign
(
{}
,
context
)
self
.
_jsSandboxContext
=
Object
.
assign
(
cmds
,
context
)
done
(
null
,
result
)
}
catch
(
error
)
{
done
(
error
.
message
)
...
...
@@ -702,7 +702,15 @@ function domTerminalFeatures (self, scopedCommands) {
log
:
function
()
{
scopedCommands
.
log
.
apply
(
scopedCommands
,
arguments
)
},
info
:
function
()
{
scopedCommands
.
info
.
apply
(
scopedCommands
,
arguments
)
},
error
:
function
()
{
scopedCommands
.
error
.
apply
(
scopedCommands
,
arguments
)
}
}
},
setTimeout
:
(
fn
,
time
)
=>
{
return
setTimeout
(()
=>
{
self
.
_shell
(
'('
+
fn
.
toString
()
+
')()'
,
scopedCommands
,
()
=>
{})
},
time
)
},
setInterval
:
(
fn
,
time
)
=>
{
return
setInterval
(()
=>
{
self
.
_shell
(
'('
+
fn
.
toString
()
+
')()'
,
scopedCommands
,
()
=>
{})
},
time
)
},
clearTimeout
:
clearTimeout
,
clearInterval
:
clearInterval
}
}
...
...
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