1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v.gen.js: Interfaces support, fix for error propagation & panic stacktraces (#11471)

This commit is contained in:
playX
2021-09-11 14:24:47 +03:00
committed by GitHub
parent 90e04d03b2
commit 5b619b99c2
4 changed files with 83 additions and 13 deletions

View File

@ -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
}