playX
ade14491d4
gg: add event handling for mouse down/up and mouse leave/out on VJS ( #12917 )
2021-12-21 12:31:29 +02:00
Delyan Angelov
f81654e3a7
builtin: add `s.match_glob(wildcard_pattern)`
2021-12-20 14:17:08 +02:00
yuyi
7c255f0ff2
builtin, cgen: fix array of map init with default value ( #12885 )
2021-12-18 10:07:25 +02:00
Delyan Angelov
6ff953d936
preludes,builder,cgen: add support for VTEST_RUNNER=tap and -test-runner tap ( #12523 )
2021-12-16 15:59:46 +02:00
playX
11d2b8b354
js: support `-es5` flag ( #12846 )
2021-12-15 15:47:34 +02:00
Delyan Angelov
df7f2aa8a3
all: support `[markused]` tags for fns/consts/globals
2021-12-15 14:34:49 +02:00
spaceface
d13fe7843c
v: fix build and failing tests on arm64 ( #12840 )
2021-12-15 09:00:38 +02:00
yuyi
7c7cdf8ce7
builtin: clean up array.v ( #12784 )
2021-12-11 11:17:00 +03:00
playX
b116170735
js: add support for Promise.wait() ( #12781 )
...
* builtin/js: Change Promise<T,E> to Promise<T>
* js: codegen support for Promise.wait()
* checker: checker support for Promise.wait()
2021-12-10 14:54:20 +02:00
playX
1cb06a2de4
js: ast.GoExpr support using promises on JS backend ( #12749 )
2021-12-07 12:11:54 +03:00
penguindark
81a1490e31
builtin: add string.split_any/1 ( #12720 )
2021-12-04 20:13:40 +02:00
Delyan Angelov
d59aa14b26
builtin: fix {-7:08b} (interpolation of negative numbers with 0 padding), add tests
2021-12-04 13:11:05 +02:00
Delyan Angelov
33163238e7
strconv: add a small performance optimisation
2021-12-03 20:14:14 +02:00
playX
0da7e2f8ab
js: make vlib/v/util compile on JS backend ( #12660 )
2021-12-03 12:25:36 +02:00
Delyan Angelov
c4363bc78b
builtin: explain and better organise the different cstring_to_vstring/tos/tos_clone/vstring family of conversion functions
2021-12-02 15:46:53 +02:00
Delyan Angelov
d7bc2a88f7
builtin: add a non allocating rune.length_in_bytes() method and tests for it
2021-12-01 16:35:13 +02:00
Delyan Angelov
6d97b0a407
checker: improve checking of a << b, when a and b are numbers ( #12589 )
2021-11-29 03:48:49 +03:00
Delyan Angelov
31fe02de8c
builtin,crypto: fix problems detected by -fsanitize=address,undefined and -fsanitize=memory
2021-11-28 20:35:18 +02:00
Delyan Angelov
b4c52b72cf
builtin: change the `-d debug_malloc` byte pattern to `M` so it is easier to spot with a plain text terminal.
2021-11-28 19:23:11 +02:00
playX
b0bc112168
jsdom, examples: add more WebGL APIs; add interactive 3D cube example running on VJS ( #12562 )
2021-11-24 20:31:39 +02:00
pancake
70ff00efbb
bootstrapping: fix building V on OpenBSD ( #12558 )
2021-11-24 09:46:46 +02:00
playX
12ffe04212
jsdom, builtin/js: WebGL W.I.P; Added support for casting V arrays to typed arrays ( #12551 )
...
* builtin/js: TypedArray support
* jsdom: WebGL W.I.P
2021-11-23 14:51:59 +02:00
Delyan Angelov
1aaac13a60
cgen: make `os` less special, fix an -autofree leak on just `import os`
...
* Improve documentation of v.util.Surrounder
* Remove `os` from the list of "no auto free" `builtin` mods
* Fix -autofree freeing of `const x = []string{}`.
* Add a valgrind regression test.
* Implement os.getenv_opt in vlib/os/environment.js.v too.
2021-11-21 21:50:10 +02:00
playX
243e66a106
js,jsdom: Canvas & context API; Added TypeSymbol.is_js_compatible & temporary hacks for JS ifaces ( #12526 )
2021-11-20 21:28:11 +02:00
playX
2eb02ff5a7
jsdom, js: start refactoring jsdom; improve JS interfaces; add two attributes for them ( #12488 )
2021-11-17 11:41:33 +02:00
Delyan Angelov
6ac109a7c3
builtin: add a `[has_globals]` tag for all the .v files, with global declarations in them
2021-11-17 10:29:06 +02:00
yuyi
c28041cecc
all: cleanup/rename all `comp_` names to be `comptime_` ( #12467 )
2021-11-15 15:47:29 +02:00
playX
e3d98b1b28
js,strconv: port some functions to JS backend, improve `rune.str()` ( #12460 )
2021-11-14 21:06:58 +02:00
playX
a4c57ba56e
js: support JS interfaces ( #12426 )
2021-11-11 14:36:32 +02:00
Delyan Angelov
80242c8041
builtin,ast: apply small performance improvements, suggested by `hotspot`
2021-11-07 13:30:44 +02:00
playX
5f3dcde358
jsdom,builtin: add all methods for DOMMatrix; add conversion methods to convet from/to JS types ( #12395 )
2021-11-06 15:52:24 +02:00
Alexander Medvednikov
7ea57bfa1e
builtin: make map.keys() public
2021-11-04 19:09:37 +03:00
Delyan Angelov
6937074e7a
strings,builder: reduce V cgen and parser memory consumption, fix strings.Builder leak ( #12342 )
2021-10-31 12:58:55 +02:00
Delyan Angelov
579d5ae649
builtin,checker: add array.flags. Allow changing it in `unsafe {}` blocks
2021-10-31 11:04:56 +02:00
Delyan Angelov
b86c79329b
os, builtin: reduce leaks without -autofree
2021-10-29 15:49:30 +03:00
Delyan Angelov
475a2f9b43
ci: fix failing vlib/orm/orm_test.v
2021-10-28 17:33:18 +03:00
Delyan Angelov
4d0f6767b1
builtin: use malloc instead of calloc for `[]Type{cap: size}`
2021-10-28 17:18:03 +03:00
Delyan Angelov
8014235e0e
scanner: speed up text_scan by using a specialised keywords matcher, instead of a generic V map of keywords
2021-10-28 15:41:13 +03:00
playX
cfecb62299
js: DOM API. Part 1 ( #12296 )
2021-10-27 23:18:09 +03:00
Wertzui123
ea6d2d53db
parser: disallow `for mut in range` ( fix #12234 ) ( #12277 )
2021-10-27 14:55:36 +03:00
Bakul Shah
cc2847f6ff
builtin: fix compilation with `-gc boehm` on some FreeBSD versions ( #12289 )
2021-10-25 10:24:08 +03:00
Delyan Angelov
eed94c727c
os: move C struct declarations in their own _default.c.v files ( #12268 )
2021-10-22 17:08:08 +03:00
playX
57c79770b3
js: port more methods (os, builtin) ( #12238 )
2021-10-20 16:02:21 +03:00
playX
c1aa782a6c
js,checker: fix some modules build for `v -b js self`, fix `or block` check in ast.CallExpr ( #12231 )
2021-10-19 12:11:54 +03:00
playX
d373eba79b
js: implement more functions for JS backend ( #12167 )
2021-10-13 09:40:14 +03:00
playX
22962dd2d2
js: change codegen for match statement, speedup string.split_into_lines ( #12157 )
2021-10-12 09:52:16 +03:00
playX
a8ace2c41c
math: implement `pow` in pure V ( #12105 )
2021-10-08 17:44:55 +03:00
playX
33a1006cc5
js: comptime&assert improvements, more `byte` and `strings.Builder` methods ported ( #12096 )
2021-10-07 15:55:47 +03:00
playX
b2945e916f
js: add initial support for runes ( #12077 )
2021-10-06 10:43:49 +03:00
playX
8d1ba52d0c
js: fix string.bytes codegen, readline, add tests for `strings` ( #12060 )
2021-10-04 18:28:30 +03:00