show natives in debugger/repl
This commit is contained in:
parent
46829df28b
commit
42c0e62597
|
|
@ -104,6 +104,8 @@ function formatValue(value: Value): string {
|
||||||
} else if (value.type === 'function') {
|
} else if (value.type === 'function') {
|
||||||
const params = value.params.join(', ')
|
const params = value.params.join(', ')
|
||||||
return `${colors.dim}<fn(${params})>${colors.reset}`
|
return `${colors.dim}<fn(${params})>${colors.reset}`
|
||||||
|
} else if (value.type === 'native') {
|
||||||
|
return `${colors.dim}<native>${colors.reset}`
|
||||||
}
|
}
|
||||||
return String(value)
|
return String(value)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
bin/repl
2
bin/repl
|
|
@ -38,6 +38,8 @@ function formatValue(value: Value): string {
|
||||||
} else if (value.type === 'function') {
|
} else if (value.type === 'function') {
|
||||||
const params = value.params.join(', ')
|
const params = value.params.join(', ')
|
||||||
return `${colors.dim}<fn(${params})>${colors.reset}`
|
return `${colors.dim}<fn(${params})>${colors.reset}`
|
||||||
|
} else if (value.type === 'native') {
|
||||||
|
return `${colors.dim}<native>${colors.reset}`
|
||||||
}
|
}
|
||||||
return String(value)
|
return String(value)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user