chiark / gitweb /
otter.git
8 years agoCompiles and runs
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.

8 years agoConvert everything to classes.
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.
```

8 years agoAs an experiment change WebAssembly.Module to a class
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.
```

8 years agoWASM Error interfaces added
Nidin Vinayakan [Sat, 1 Apr 2017 12:05:58 +0000 (14:05 +0200)]
WASM Error interfaces added

8 years agoMerge pull request #1 from winksaville/tweaks
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

8 years agoThis now compiles and runs if node v8.0.0 is used.
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

8 years agoWIP: Initial tweaks to get running
Wink Saville [Fri, 31 Mar 2017 16:45:04 +0000 (09:45 -0700)]
WIP: Initial tweaks to get running

8 years agoWebAssembly declaration file for TypeScript and a dummy test.
Nidin Vinayakan [Fri, 31 Mar 2017 15:24:28 +0000 (17:24 +0200)]
WebAssembly declaration file for TypeScript and a dummy test.

8 years agoInitial commit
Nidin Vinayakan [Fri, 31 Mar 2017 13:54:27 +0000 (15:54 +0200)]
Initial commit