]> git.bitcoin.ninja Git - ldk-java/log
ldk-java
2 years agoConvert primitives before passing to host language
Matt Corallo [Fri, 15 Apr 2022 16:11:46 +0000 (16:11 +0000)]
Convert primitives before passing to host language

This resolves an issue where we map unsigned primitives to their
signed variants, and occasionally pass the unsigned variant (which
is outside the bounds of the signed variant) to the host language.

In Java this can cause a panic as the VM sees an int outside the
range of a short (for example with network ports).

2 years agoMerge pull request #94 from TheBlueMatt/main
Matt Corallo [Fri, 15 Apr 2022 02:50:03 +0000 (02:50 +0000)]
Merge pull request #94 from TheBlueMatt/main

2 years agoFix spurious inclusion of the OSX leaktracking bins in the release jar
Matt Corallo [Thu, 14 Apr 2022 03:22:11 +0000 (03:22 +0000)]
Fix spurious inclusion of the OSX leaktracking bins in the release jar

2 years agoUpload OSX CI builds for analysis to debug nondeterminism
Matt Corallo [Thu, 14 Apr 2022 02:50:16 +0000 (02:50 +0000)]
Upload OSX CI builds for analysis to debug nondeterminism

2 years agoUpdate clang to 14.0.0 (sadly 14.0.1 darwin binaries are not yet up)
Matt Corallo [Thu, 14 Apr 2022 01:59:54 +0000 (01:59 +0000)]
Update clang to 14.0.0 (sadly 14.0.1 darwin binaries are not yet up)

2 years agoUpdate CI branch to 0.0.106
Matt Corallo [Thu, 14 Apr 2022 01:53:56 +0000 (01:53 +0000)]
Update CI branch to 0.0.106

2 years agoPin cbindgen in CI as 0.21 broke the MSRV
Matt Corallo [Thu, 14 Apr 2022 00:55:21 +0000 (00:55 +0000)]
Pin cbindgen in CI as 0.21 broke the MSRV

2 years ago[TS] Remove checked-in WASM binary - it should be in ldk-java-bins
Matt Corallo [Fri, 15 Apr 2022 01:48:12 +0000 (01:48 +0000)]
[TS] Remove checked-in WASM binary - it should be in ldk-java-bins

2 years ago[TS] Update tests to latest upstream API
Matt Corallo [Thu, 14 Apr 2022 14:43:11 +0000 (14:43 +0000)]
[TS] Update tests to latest upstream API

2 years ago[TS] Update auto-generated bindings
Matt Corallo [Thu, 14 Apr 2022 00:22:26 +0000 (00:22 +0000)]
[TS] Update auto-generated bindings

2 years ago[TS] Implement trait_struct_inc_refcnt properly (identical to java)
Matt Corallo [Fri, 15 Apr 2022 01:25:56 +0000 (01:25 +0000)]
[TS] Implement trait_struct_inc_refcnt properly (identical to java)

2 years ago[Java] Update auto-generated bindings
Matt Corallo [Wed, 13 Apr 2022 17:07:02 +0000 (17:07 +0000)]
[Java] Update auto-generated bindings

2 years ago[Java] Update LDK batteries to latest upstream API
Matt Corallo [Wed, 13 Apr 2022 17:06:39 +0000 (17:06 +0000)]
[Java] Update LDK batteries to latest upstream API

2 years ago[Java] Update tests to latest upstream API
Matt Corallo [Tue, 5 Apr 2022 18:08:36 +0000 (18:08 +0000)]
[Java] Update tests to latest upstream API

2 years agoAdd a new manual type - UnqualifiedError/LDKError
Matt Corallo [Tue, 5 Apr 2022 18:07:12 +0000 (18:07 +0000)]
Add a new manual type - UnqualifiedError/LDKError

2 years agoFully-Qualify Paths in some contexts instead of assuming enums
Matt Corallo [Tue, 5 Apr 2022 18:05:11 +0000 (18:05 +0000)]
Fully-Qualify Paths in some contexts instead of assuming enums

Instead of assuming enum variants that have a name the same as a
field's type, actually build a (simple) qualified-name method and
start using it.

2 years agoMerge pull request #91 from TheBlueMatt/main v0.0.105.1
Matt Corallo [Thu, 24 Mar 2022 02:22:14 +0000 (02:22 +0000)]
Merge pull request #91 from TheBlueMatt/main

[Java] Correct the checked-in bindings to match generated ones

2 years ago[Java] Correct the checked-in bindings to match generated ones
Matt Corallo [Thu, 24 Mar 2022 01:17:20 +0000 (01:17 +0000)]
[Java] Correct the checked-in bindings to match generated ones

2 years agoMerge pull request #90 from TheBlueMatt/main
Matt Corallo [Thu, 24 Mar 2022 00:18:32 +0000 (00:18 +0000)]
Merge pull request #90 from TheBlueMatt/main

Expose ProbabilisticScorer

2 years ago[Java] Link libmath for `log10` (REVERT FOR 0.0.106)
Matt Corallo [Wed, 23 Mar 2022 22:22:33 +0000 (22:22 +0000)]
[Java] Link libmath for `log10` (REVERT FOR 0.0.106)

2 years ago[TS/CI] Update dependent package list
Matt Corallo [Wed, 23 Mar 2022 21:36:26 +0000 (21:36 +0000)]
[TS/CI] Update dependent package list

2 years ago[TS] Update auto-generated bindings
Matt Corallo [Wed, 23 Mar 2022 03:08:15 +0000 (03:08 +0000)]
[TS] Update auto-generated bindings

2 years ago[Java] Update auto-generated bindings to include ProbabilisticScorer
Matt Corallo [Wed, 23 Mar 2022 02:36:43 +0000 (02:36 +0000)]
[Java] Update auto-generated bindings to include ProbabilisticScorer

2 years ago[Java] Use ProbabilisticScorer in HumanObjectPeerTest
Matt Corallo [Wed, 23 Mar 2022 03:08:51 +0000 (03:08 +0000)]
[Java] Use ProbabilisticScorer in HumanObjectPeerTest

2 years agoDon't assume from-var conversion in opaque ret conv
Matt Corallo [Wed, 23 Mar 2022 18:44:04 +0000 (18:44 +0000)]
Don't assume from-var conversion in opaque ret conv

When we do a ret-conv of an opaque struct, don't assume that the
variable as-parsed exists, instead use the variable that's being
created in the ret-conv string if we need to clone.

2 years ago[Java] Make HumanObjectPeerTest status print a callback
Matt Corallo [Fri, 4 Mar 2022 17:41:34 +0000 (17:41 +0000)]
[Java] Make HumanObjectPeerTest status print a callback

...to make it easier to improve the Android LDKTester app

2 years agoMerge pull request #88 from TheBlueMatt/main v0.0.105.0
Matt Corallo [Fri, 4 Mar 2022 18:34:09 +0000 (18:34 +0000)]
Merge pull request #88 from TheBlueMatt/main

Fix 32-bit Java builds

2 years ago[TS] Update auto-generated C bindings with latest changes
Matt Corallo [Fri, 4 Mar 2022 17:31:57 +0000 (17:31 +0000)]
[TS] Update auto-generated C bindings with latest changes

2 years ago[Java] Update auto-generated bindings with latest changes
Matt Corallo [Fri, 4 Mar 2022 06:47:46 +0000 (06:47 +0000)]
[Java] Update auto-generated bindings with latest changes

2 years agoMake pointer integer type language-dependent, instead of intptr_t
Matt Corallo [Thu, 3 Mar 2022 21:03:29 +0000 (21:03 +0000)]
Make pointer integer type language-dependent, instead of intptr_t

This is more consistent as we already did this in some places and
resolves issues on 32-bit Java platforms (ie Android ARMv7)
introduced in b0ba503b308bcdcbf1b7609876705c12408e44e6 and
071b5fa40465132896ffca3c8ad29d0374e983d2.

2 years ago[Android] Drop i686 as a build target
Matt Corallo [Fri, 4 Mar 2022 06:17:56 +0000 (06:17 +0000)]
[Android] Drop i686 as a build target

I don't believe i686 phones ever existed, and emulators should
prefer x86_64 instead.

2 years agoMerge pull request #86 from TheBlueMatt/main
Matt Corallo [Thu, 3 Mar 2022 19:48:26 +0000 (19:48 +0000)]
Merge pull request #86 from TheBlueMatt/main

Update to 0.0.105.0

2 years agoUpdate CI to the ldk-c-bindings 0.0.105 branch
Matt Corallo [Thu, 3 Mar 2022 06:52:20 +0000 (06:52 +0000)]
Update CI to the ldk-c-bindings 0.0.105 branch

2 years agoBump clang to 13.0.1 on OSX in CI
Matt Corallo [Tue, 15 Feb 2022 21:19:31 +0000 (21:19 +0000)]
Bump clang to 13.0.1 on OSX in CI

2 years ago[TS] Update auto-generated bindings for 0.0.105.0
Matt Corallo [Thu, 3 Mar 2022 04:06:04 +0000 (04:06 +0000)]
[TS] Update auto-generated bindings for 0.0.105.0

2 years ago[TS] Handle UInt5s and arrays of UInt5s
Matt Corallo [Thu, 3 Mar 2022 04:29:29 +0000 (04:29 +0000)]
[TS] Handle UInt5s and arrays of UInt5s

2 years ago[Java] Update HumanObjectPeerTest to test Scorer serialization
Matt Corallo [Thu, 3 Mar 2022 04:06:25 +0000 (04:06 +0000)]
[Java] Update HumanObjectPeerTest to test Scorer serialization

This doesn't appear to change much, but it seems nicer to.

As of this commit, the total leaks during a full Java test run are
    25 allocations remained for 1115532 bytes.

2 years ago[Java] Update auto-generated bindings to 0.0.105.0
Matt Corallo [Thu, 3 Mar 2022 02:40:37 +0000 (02:40 +0000)]
[Java] Update auto-generated bindings to 0.0.105.0

2 years ago[Java] Add a reachabilityFence on underlying trait impl calls
Matt Corallo [Thu, 3 Mar 2022 02:32:15 +0000 (02:32 +0000)]
[Java] Add a reachabilityFence on underlying trait impl calls

Because the implementation instance is implicitly held as a
reference in the `held` field, it seems unlikely this could ever
matter, hwoever, in the simplified implementation in `PeerTest`
(where there is no Human instance to hold a reference to the
underlying bindings instance), we do see the implementation being
free'd while its still in use. Thus, to ensure we can't hit any
such issue in the future, we add one in normal human objects as
well.

2 years ago[Java] Update tests + batteries to latest upstream API
Matt Corallo [Thu, 3 Mar 2022 02:31:52 +0000 (02:31 +0000)]
[Java] Update tests + batteries to latest upstream API

2 years ago[Java] Handle UInt5 array conversion
Matt Corallo [Thu, 3 Mar 2022 02:29:17 +0000 (02:29 +0000)]
[Java] Handle UInt5 array conversion

2 years agoCorrect handling of arrays of 32-byte-array equivalents (Payment*)
Matt Corallo [Wed, 2 Mar 2022 21:23:50 +0000 (21:23 +0000)]
Correct handling of arrays of 32-byte-array equivalents (Payment*)

2 years agoProperly match warning comments, not structs with "Warning"
Matt Corallo [Wed, 2 Mar 2022 21:23:26 +0000 (21:23 +0000)]
Properly match warning comments, not structs with "Warning"

2 years agoMerge pull request #82 from TheBlueMatt/main
Matt Corallo [Wed, 2 Feb 2022 20:32:01 +0000 (20:32 +0000)]
Merge pull request #82 from TheBlueMatt/main

TypeScript Package cleanups and Java socket closure

2 years ago[TS] Fix CI when we log while the browser is shutting down
Matt Corallo [Wed, 2 Feb 2022 19:29:45 +0000 (19:29 +0000)]
[TS] Fix CI when we log while the browser is shutting down

2 years ago[Java] Close all sockets cleanly on `NioPeerHandler::interrupt`
Matt Corallo [Tue, 1 Feb 2022 22:33:02 +0000 (22:33 +0000)]
[Java] Close all sockets cleanly on `NioPeerHandler::interrupt`

2 years ago[Java] More carefully ensure sockets are closed in `NioPeerHandler`
Matt Corallo [Thu, 27 Jan 2022 18:39:52 +0000 (18:39 +0000)]
[Java] More carefully ensure sockets are closed in `NioPeerHandler`

There is no indication that the sockets are leaking in the handling
loop, but its good to be careful and ensure we always both close
the SocketChannel and cancel the key registration.

During connection, however, it appears we may leak a SocketChannel
if the connection times out, leaking a file descriptor at least
until the GC kicks in and cleans up after us.  Here we are more
careful.

2 years ago[Java] Stop processing net before we stop the background processor
Matt Corallo [Tue, 18 Jan 2022 21:46:31 +0000 (21:46 +0000)]
[Java] Stop processing net before we stop the background processor

See https://github.com/lightningdevkit/rust-lightning/issues/1237A

Fixes #77.

2 years ago[TS] Copy README.md instead of symlinking, so npm publish accepts it
Matt Corallo [Tue, 18 Jan 2022 00:38:47 +0000 (00:38 +0000)]
[TS] Copy README.md instead of symlinking, so npm publish accepts it

2 years ago[TS] Add a types tag in package.json to point to TS types
Matt Corallo [Tue, 18 Jan 2022 00:37:18 +0000 (00:37 +0000)]
[TS] Add a types tag in package.json to point to TS types

2 years agoMerge pull request #81 from TheBlueMatt/main
Matt Corallo [Tue, 18 Jan 2022 00:09:37 +0000 (00:09 +0000)]
Merge pull request #81 from TheBlueMatt/main

[TS] Unify Web + Node Codebases (with different init functions)

2 years ago[TS] Bump package version to 0.0.104.1alpha4
Matt Corallo [Mon, 17 Jan 2022 22:34:22 +0000 (22:34 +0000)]
[TS] Bump package version to 0.0.104.1alpha4

2 years agoUpdate auto-generated TypeScript files (now universal Node+Web!)
Matt Corallo [Mon, 17 Jan 2022 22:29:35 +0000 (22:29 +0000)]
Update auto-generated TypeScript files (now universal Node+Web!)

2 years ago[TS] Unify Web and Node.JS output so it can be universal
Matt Corallo [Mon, 17 Jan 2022 22:27:50 +0000 (22:27 +0000)]
[TS] Unify Web and Node.JS output so it can be universal

2 years agoMerge pull request #80 from TheBlueMatt/main
Matt Corallo [Mon, 17 Jan 2022 21:42:15 +0000 (21:42 +0000)]
Merge pull request #80 from TheBlueMatt/main

Fix TypeScript CI + Package Missing FIles

2 years ago[TS] Bump package version to 0.0.104.1alpha3
Matt Corallo [Mon, 17 Jan 2022 13:05:45 +0000 (13:05 +0000)]
[TS] Bump package version to 0.0.104.1alpha3

2 years ago[TS] Include missing version.mjs file
Matt Corallo [Mon, 17 Jan 2022 13:02:04 +0000 (13:02 +0000)]
[TS] Include missing version.mjs file

2 years ago[TS] spawn second HTTP server for release run, killing previous one
Matt Corallo [Mon, 17 Jan 2022 16:13:57 +0000 (16:13 +0000)]
[TS] spawn second HTTP server for release run, killing previous one

2 years ago[TS] Manually GC on chromium and skip leak checks otherwise
Matt Corallo [Mon, 17 Jan 2022 14:01:50 +0000 (14:01 +0000)]
[TS] Manually GC on chromium and skip leak checks otherwise

2 years ago[TS] Log console messages in browser tests via playwright
Matt Corallo [Mon, 17 Jan 2022 13:04:40 +0000 (13:04 +0000)]
[TS] Log console messages in browser tests via playwright

2 years agoMerge pull request #79 from TheBlueMatt/main
Matt Corallo [Mon, 17 Jan 2022 04:43:39 +0000 (04:43 +0000)]
Merge pull request #79 from TheBlueMatt/main

TypeScript Cleanups and Fixes

2 years ago[TS] Do not rely on a symlink as npm publish ignores it
Matt Corallo [Mon, 17 Jan 2022 04:33:09 +0000 (04:33 +0000)]
[TS] Do not rely on a symlink as npm publish ignores it

2 years agoUpdate auto-generated Java Bindings
Matt Corallo [Mon, 17 Jan 2022 02:57:38 +0000 (02:57 +0000)]
Update auto-generated Java Bindings

2 years ago[TS] Update auto-generated TypeScript Bindings
Matt Corallo [Sat, 15 Jan 2022 20:33:07 +0000 (20:33 +0000)]
[TS] Update auto-generated TypeScript Bindings

2 years ago[TS] Update tests to build a funding tx and get to broadcast
Matt Corallo [Mon, 17 Jan 2022 02:55:58 +0000 (02:55 +0000)]
[TS] Update tests to build a funding tx and get to broadcast

2 years agoUse uintptr_t in generic conversion when we're talking about pointers
Matt Corallo [Mon, 17 Jan 2022 02:54:11 +0000 (02:54 +0000)]
Use uintptr_t in generic conversion when we're talking about pointers

This may make it harder to support 32-bit Java platforms in the
future if we have a reason to do so, but that seems unlikely and
its possible we can simply redefine the type.

2 years agoUse intptr_t in C when talking about a pointer.
Matt Corallo [Mon, 17 Jan 2022 02:50:23 +0000 (02:50 +0000)]
Use intptr_t in C when talking about a pointer.

This fixes a bug in TS where we'd return an int64_t when we intended
to return a pointer, confusing JavaScript as to why it has a bigint
instead of a number.

This may make it harder to support 32-bit Java platforms in the
future if we have a reason to do so, but that seems unlikely and
its possible we can simply redefine the type.

2 years ago[TS] Run both debug and release builds in CI
Matt Corallo [Mon, 17 Jan 2022 00:36:56 +0000 (00:36 +0000)]
[TS] Run both debug and release builds in CI

2 years ago[TS] Bump version to 0.0.104.1alpha2
Matt Corallo [Mon, 17 Jan 2022 00:11:09 +0000 (00:11 +0000)]
[TS] Bump version to 0.0.104.1alpha2

2 years ago[TS] Include most doc comments
Matt Corallo [Mon, 17 Jan 2022 00:09:13 +0000 (00:09 +0000)]
[TS] Include most doc comments

2 years ago[TS] Fix Some array leaks, mark others, treat < 10 leaks as "okay"
Matt Corallo [Sun, 16 Jan 2022 23:49:44 +0000 (23:49 +0000)]
[TS] Fix Some array leaks, mark others, treat < 10 leaks as "okay"

2 years ago[TS] Empty environment variables as WASI's environ fetch leaks memory
Matt Corallo [Sun, 16 Jan 2022 23:33:07 +0000 (23:33 +0000)]
[TS] Empty environment variables as WASI's environ fetch leaks memory

2 years ago[TS] Use -O1 on debug builds as otherwise they can be unusable slow
Matt Corallo [Sun, 16 Jan 2022 23:13:29 +0000 (23:13 +0000)]
[TS] Use -O1 on debug builds as otherwise they can be unusable slow

2 years ago[TS] Free native -> human arrays after we're done converting
Matt Corallo [Sun, 16 Jan 2022 23:11:35 +0000 (23:11 +0000)]
[TS] Free native -> human arrays after we're done converting

2 years ago[TS] Wrap `aligned_alloc` as well as other malloc's.
Matt Corallo [Sun, 16 Jan 2022 22:25:20 +0000 (22:25 +0000)]
[TS] Wrap `aligned_alloc` as well as other malloc's.

2 years ago[TS] Debug allocations somewhat further, incl prints in test.
Matt Corallo [Sun, 16 Jan 2022 18:36:46 +0000 (18:36 +0000)]
[TS] Debug allocations somewhat further, incl prints in test.

2 years ago[TS] Move C header code to next to code that uses it in constr
Matt Corallo [Sun, 16 Jan 2022 18:34:30 +0000 (18:34 +0000)]
[TS] Move C header code to next to code that uses it in constr

2 years ago[TS] Fix Debug builds by removing ((destructor)) attributes
Matt Corallo [Sat, 15 Jan 2022 22:02:46 +0000 (22:02 +0000)]
[TS] Fix Debug builds by removing ((destructor)) attributes

2 years ago[TS] Remove race-y test for malloc-free-malloc re-using memory
Matt Corallo [Sat, 15 Jan 2022 21:46:20 +0000 (21:46 +0000)]
[TS] Remove race-y test for malloc-free-malloc re-using memory

2 years ago[TS] Swap Os for Oz because its a minor change and a minor win
Matt Corallo [Sat, 15 Jan 2022 20:54:37 +0000 (20:54 +0000)]
[TS] Swap Os for Oz because its a minor change and a minor win

2 years ago[TS] Make bindings.mts export nothing, fix some indentation
Matt Corallo [Sat, 15 Jan 2022 20:30:37 +0000 (20:30 +0000)]
[TS] Make bindings.mts export nothing, fix some indentation

2 years ago[TS] Set LDK_GARBAGECOLLECTED_GIT_OVERRIDE so that versions work
Matt Corallo [Mon, 17 Jan 2022 04:29:02 +0000 (04:29 +0000)]
[TS] Set LDK_GARBAGECOLLECTED_GIT_OVERRIDE so that versions work

2 years ago[TS] Add bindings-binary-version-check to initializeWasm
Matt Corallo [Sat, 15 Jan 2022 20:30:03 +0000 (20:30 +0000)]
[TS] Add bindings-binary-version-check to initializeWasm

2 years ago[TS] Create .d.mts files by default
Matt Corallo [Sat, 15 Jan 2022 20:28:36 +0000 (20:28 +0000)]
[TS] Create .d.mts files by default

2 years ago[TS] Fix HTML test runner to properly await and fully check result
Matt Corallo [Sat, 15 Jan 2022 05:35:12 +0000 (05:35 +0000)]
[TS] Fix HTML test runner to properly await and fully check result

2 years agoMerge pull request #78 from arik-so/typescript_fixes
Matt Corallo [Fri, 14 Jan 2022 19:12:15 +0000 (19:12 +0000)]
Merge pull request #78 from arik-so/typescript_fixes

Make npm publication generate node-compatible modules.

2 years agoInclude type declaration files and remove typically unnecessary dependencies.
Arik Sosman [Wed, 12 Jan 2022 20:30:37 +0000 (12:30 -0800)]
Include type declaration files and remove typically unnecessary dependencies.

Update files to include *.mjs files and remove npmignore.

Update .gitignore

Update .npmignore

Update .gitignore

Make publication generate node-compatible modules.

2 years agoMerge pull request #74 from TheBlueMatt/2022-01-ts-hu-files v0.0.104.1
Matt Corallo [Mon, 10 Jan 2022 21:38:45 +0000 (21:38 +0000)]
Merge pull request #74 from TheBlueMatt/2022-01-ts-hu-files

[TypeScript] Make Basic "Human" Object Construction Work

2 years agoUpdate auto-generated TypeScript Bindings 2022-01-ts-hu-files
Matt Corallo [Mon, 10 Jan 2022 03:29:25 +0000 (03:29 +0000)]
Update auto-generated TypeScript Bindings

2 years agoUpdate auto-generated Java bindings (all functionally equivalent)
Matt Corallo [Mon, 10 Jan 2022 03:25:47 +0000 (03:25 +0000)]
Update auto-generated Java bindings (all functionally equivalent)

2 years agoSplit Java CI runs into tests and binary determinism checks
Matt Corallo [Mon, 10 Jan 2022 03:12:58 +0000 (03:12 +0000)]
Split Java CI runs into tests and binary determinism checks

2 years ago[TS] Add package.json for public release
Matt Corallo [Mon, 10 Jan 2022 06:29:47 +0000 (06:29 +0000)]
[TS] Add package.json for public release

2 years ago[TS] Update README to describe TS as "early alpha" 🚀
Matt Corallo [Sat, 8 Jan 2022 17:48:28 +0000 (17:48 +0000)]
[TS] Update README to describe TS as "early alpha" ðŸš€

2 years ago[TS] Change paths to liblightningjs.wasm to be in ts/
Matt Corallo [Mon, 10 Jan 2022 05:41:44 +0000 (05:41 +0000)]
[TS] Change paths to liblightningjs.wasm to be in ts/

2 years ago[TS] Add a basic functional tests of human types
Matt Corallo [Sat, 8 Jan 2022 07:43:36 +0000 (07:43 +0000)]
[TS] Add a basic functional tests of human types

2 years ago[TS] Drop InternalUtils as they are now called via bindings.
Matt Corallo [Mon, 10 Jan 2022 05:35:54 +0000 (05:35 +0000)]
[TS] Drop InternalUtils as they are now called via bindings.

2 years ago[TS] Swap BigInt (the class/constructor) for bigint (the primitive)
Matt Corallo [Mon, 10 Jan 2022 00:56:18 +0000 (00:56 +0000)]
[TS] Swap BigInt (the class/constructor) for bigint (the primitive)

2 years agoSupport mapping primitive arrays as non-arrays (eg numbers)
Matt Corallo [Mon, 10 Jan 2022 00:55:04 +0000 (00:55 +0000)]
Support mapping primitive arrays as non-arrays (eg numbers)

TypeScript can't pass an array through to C, so we have to pass a
pointer to a constructed array. This adds support in the relevant
type-conversion logic to enable this (and uses it in TS).

2 years agoEnsure `TypeInfo` always has `subty` set if its an array
Matt Corallo [Mon, 10 Jan 2022 00:50:23 +0000 (00:50 +0000)]
Ensure `TypeInfo` always has `subty` set if its an array

2 years agoMake String types language-specific and fix TS string conversion
Matt Corallo [Sun, 9 Jan 2022 06:24:30 +0000 (06:24 +0000)]
Make String types language-specific and fix TS string conversion