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
2db6ff85
Commit
2db6ff85
authored
Jul 05, 2020
by
Iuri Matias
Committed by
aniket-engg
Aug 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor checkRequestedStep
parent
d1dc0819
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
traceManager.js
libs/remix-lib/src/trace/traceManager.js
+9
-8
No files found.
libs/remix-lib/src/trace/traceManager.js
View file @
2db6ff85
...
...
@@ -112,9 +112,9 @@ TraceManager.prototype.buildCallPath = function (stepIndex, callback) {
}
TraceManager
.
prototype
.
getCallStackAt
=
function
(
stepIndex
)
{
// this.checkRequestedStep(stepIndex)
const
check
=
this
.
checkRequestedStep
(
stepIndex
)
if
(
check
)
{
try
{
this
.
checkRequestedStep
(
stepIndex
)
}
catch
(
check
)
{
throw
new
Error
(
check
)
}
const
call
=
util
.
findCall
(
stepIndex
,
this
.
traceCache
.
callsTree
.
call
)
...
...
@@ -154,9 +154,9 @@ TraceManager.prototype.getStackAt = function (stepIndex, callback) {
// }
TraceManager
.
prototype
.
getLastCallChangeSince
=
function
(
stepIndex
)
{
// this.checkRequestedStep(stepIndex)
const
check
=
this
.
checkRequestedStep
(
stepIndex
)
if
(
check
)
{
try
{
this
.
checkRequestedStep
(
stepIndex
)
}
catch
(
check
)
{
// return callback(check, null)
throw
new
Error
(
check
)
}
...
...
@@ -204,8 +204,9 @@ TraceManager.prototype.getLastCallChangeSince = function (stepIndex) {
// }
TraceManager
.
prototype
.
getCurrentCalledAddressAt
=
function
(
stepIndex
,
callback
)
{
const
check
=
this
.
checkRequestedStep
(
stepIndex
)
if
(
check
)
{
try
{
this
.
checkRequestedStep
(
stepIndex
)
}
catch
(
check
)
{
return
callback
(
check
,
null
)
}
...
...
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