show natives in debugger/repl

This commit is contained in:
Chris Wanstrath 2025-10-25 07:56:06 -07:00
parent 46829df28b
commit 42c0e62597
2 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,8 @@ function formatValue(value: Value): string {
} else if (value.type === 'function') {
const params = value.params.join(', ')
return `${colors.dim}<fn(${params})>${colors.reset}`
} else if (value.type === 'native') {
return `${colors.dim}<native>${colors.reset}`
}
return String(value)
}

View File

@ -38,6 +38,8 @@ function formatValue(value: Value): string {
} else if (value.type === 'function') {
const params = value.params.join(', ')
return `${colors.dim}<fn(${params})>${colors.reset}`
} else if (value.type === 'native') {
return `${colors.dim}<native>${colors.reset}`
}
return String(value)
}