mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
v.gen.js: Interfaces support, fix for error propagation & panic stacktraces (#11471)
This commit is contained in:
parent
90e04d03b2
commit
5b619b99c2
4 changed files with 83 additions and 13 deletions
|
@ -79,3 +79,12 @@ pub fn (r rune) str() string {
|
|||
|
||||
return sb.str()
|
||||
}
|
||||
|
||||
fn js_stacktrace() string {
|
||||
stacktrace := ''
|
||||
#let err = new TypeError();
|
||||
#err.name = 'stacktrace: '
|
||||
#stacktrace.str = err.stack
|
||||
|
||||
return stacktrace
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue