cleanup importjs implementation

This commit is contained in:
Andreas Rumpf 2019-09-21 11:19:00 +02:00
commit b04ef2973d
2 changed files with 9 additions and 13 deletions

View file

@ -100,7 +100,10 @@ iterator myitems[T](x: openarray[T]): lent T
iterator mypairs[T](x: openarray[T]): tuple[idx: int, val: lent T]
```
- `importjs` can now be used to import for ffi on the JS target
- Added an `importjs` pragma that can now be used instead of `importcpp`
and `importc` to import symbols from JavaScript. `importjs` for routines always
takes a "pattern" for maximum flexibility.
## Language changes