mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: make vlib/v/util compile on JS backend (#12660)
This commit is contained in:
@@ -83,3 +83,9 @@ pub fn error_with_code(message string, code int) IError {
|
||||
code: code
|
||||
}
|
||||
}
|
||||
|
||||
// free allows for manually freeing memory allocated at the address `ptr`. no-op on JS backend
|
||||
[unsafe]
|
||||
pub fn free(ptr voidptr) {
|
||||
_ := ptr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user