cleanup importjs implementation
This commit is contained in:
parent
be82d11576
commit
b04ef2973d
2 changed files with 9 additions and 13 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue