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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
}