chiark / gitweb /
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Nidin Vinayakan [Tue, 4 Apr 2017 08:57:19 +0000 (10:57 +0200)]
Merge pull request #3 from winksaville/update-test-wasm.ts
Update test wasm.ts and add tsconfig.base.json
Nidin Vinayakan [Tue, 4 Apr 2017 08:57:05 +0000 (10:57 +0200)]
Merge pull request #2 from winksaville/change-Module-to-class
Change webassembly.d.ts to use classes
Wink Saville [Mon, 3 Apr 2017 15:15:26 +0000 (08:15 -0700)]
Add tsconfig.base.json
Provides stricter defaults for tsc
Wink Saville [Mon, 3 Apr 2017 15:05:43 +0000 (08:05 -0700)]
Change instantiateFile to use await rather than .then chain
Wink Saville [Mon, 3 Apr 2017 04:40:45 +0000 (21:40 -0700)]
Change instantiateFile
Don't mix async/await and .then.then statements.
Wink Saville [Sun, 2 Apr 2017 00:30:10 +0000 (17:30 -0700)]
Added type info to last .then
Doing this will disambiguate the invocation is WebAssembly.instantiate(mod)
and looks cleaner than having to type each of the "promise.then's"
as I'd done previously.
Wink Saville [Sat, 1 Apr 2017 21:56:58 +0000 (14:56 -0700)]
Compiles and runs
Added tsconfig.base.json with stricter settings which found one error
in where instantiateFile filePath parameter wasn't being used.
The "fix" was to use separate promise chain into separate variables each
with the appropriate type. My best guess is that the overloaded
instantiate confused the compiler and the inferencing wasn't working.
Wink Saville [Sat, 1 Apr 2017 17:37:48 +0000 (10:37 -0700)]
Convert everything to classes.
Still getting the same error:
```
$ yarn test
yarn test v0.21.3
$ tsc -p test/tsconfig.json
test/wasm.ts(136,3): error TS2322: Type 'ResultObject' is not assignable to type 'Instance'.
Property 'exports' is missing in type 'ResultObject'.
error Command failed with exit code 2.
```
Wink Saville [Sat, 1 Apr 2017 17:16:44 +0000 (10:16 -0700)]
As an experiment change WebAssembly.Module to a class
Close but it's not compiling I get the following error:
```
$ yarn test
yarn test v0.21.3
$ tsc -p test/tsconfig.json
test/wasm.ts(136,3): error TS2322: Type 'ResultObject' is not assignable to type 'Instance'.
Property 'exports' is missing in type 'ResultObject'.
error Command failed with exit code 2.
```
Nidin Vinayakan [Sat, 1 Apr 2017 12:05:58 +0000 (14:05 +0200)]
WASM Error interfaces added
Nidin Vinayakan [Sat, 1 Apr 2017 12:05:10 +0000 (14:05 +0200)]
Merge pull request #1 from winksaville/tweaks
WIP: Initial tweaks to get running
Wink Saville [Sat, 1 Apr 2017 06:32:37 +0000 (23:32 -0700)]
This now compiles and runs if node v8.0.0 is used.
Node v8.0.0 is not yet released and must be downloaded or compiled
from source. My testing was with node tip of tree master at
Wink Saville [Fri, 31 Mar 2017 16:45:04 +0000 (09:45 -0700)]
WIP: Initial tweaks to get running
Nidin Vinayakan [Fri, 31 Mar 2017 15:24:28 +0000 (17:24 +0200)]
WebAssembly declaration file for TypeScript and a dummy test.
Nidin Vinayakan [Fri, 31 Mar 2017 13:54:27 +0000 (15:54 +0200)]
Initial commit