chiark / gitweb /
otter.git
8 years agoMerge pull request #5 from chicoxyzzy/patch-2
Nidin Vinayakan [Thu, 4 May 2017 11:33:47 +0000 (13:33 +0200)]
Merge pull request #5 from chicoxyzzy/patch-2

Fix typo in readme

8 years agoFix typo in readme
Sergey Rubanov [Thu, 4 May 2017 11:29:04 +0000 (14:29 +0300)]
Fix typo in readme

8 years agoMerge pull request #4 from chicoxyzzy/patch-1
Nidin Vinayakan [Thu, 4 May 2017 10:10:39 +0000 (12:10 +0200)]
Merge pull request #4 from chicoxyzzy/patch-1

Adjust the dates of Node 8 release

8 years agoAdjust the dates of Node 8 release
Sergey Rubanov [Wed, 3 May 2017 16:23:58 +0000 (19:23 +0300)]
Adjust the dates of Node 8 release

8 years agoMerge pull request #3 from winksaville/update-test-wasm.ts
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

8 years agoMerge pull request #2 from winksaville/change-Module-to-class
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

8 years agoAdd tsconfig.base.json
Wink Saville [Mon, 3 Apr 2017 15:15:26 +0000 (08:15 -0700)]
Add tsconfig.base.json

Provides stricter defaults for tsc

8 years agoChange instantiateFile to use await rather than .then chain
Wink Saville [Mon, 3 Apr 2017 15:05:43 +0000 (08:05 -0700)]
Change instantiateFile to use await rather than .then chain

8 years agoChange instantiateFile
Wink Saville [Mon, 3 Apr 2017 04:40:45 +0000 (21:40 -0700)]
Change instantiateFile

Don't mix async/await and .then.then statements.

8 years agoAdded type info to last .then
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.

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