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
|
@ -7,6 +7,23 @@
|
|||
|
||||
module builtin
|
||||
|
||||
pub struct JS.node_process {
|
||||
pub:
|
||||
arch string
|
||||
argsv []string
|
||||
env []string
|
||||
platform string
|
||||
version string
|
||||
// TODO: add all properties
|
||||
}
|
||||
|
||||
// hack to access process properties
|
||||
pub fn js_node_process() JS.node_process {
|
||||
#return process
|
||||
|
||||
return JS.node_process{}
|
||||
}
|
||||
|
||||
fn JS.process.exit(int)
|
||||
fn JS.process.stdout.write(string) bool
|
||||
fn JS.process.stdout.writeln(string) bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue