mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
v.gen.js: add source map creation support (inline only, no src) (#10384)
This commit is contained in:
parent
14519bbf5c
commit
96c8d147b2
17 changed files with 1275 additions and 39 deletions
|
@ -21,6 +21,15 @@ pub struct JS.Array {
|
|||
|
||||
pub struct JS.Map {}
|
||||
|
||||
// browser: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Error
|
||||
// node: https://nodejs.org/api/errors.html#errors_class_error
|
||||
pub struct JS.Error {
|
||||
pub:
|
||||
name string
|
||||
message string
|
||||
stack string
|
||||
}
|
||||
|
||||
// Type prototype functions
|
||||
fn (v JS.String) toString() JS.String
|
||||
fn (v JS.Number) toString() JS.String
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue