git ssb

0+

wanderer🌟 / wasm-persist



Commit f74b2f64270fd00c432ee293362b293055ca8e9d

fix more typos

Norton Wang committed on 4/25/2018, 11:35:52 PM
Parent: 8fb216c62276f508a5fd349383be046d162baaa7

Files changed

README.mdchanged
index.jschanged
README.mdView
@@ -1,14 +1,13 @@
1-# SYNOPSIS
1 +# SYNOPSIS
22
33 [![NPM Package](https://img.shields.io/npm/v/wasm-persist.svg?style=flat-square)](https://www.npmjs.org/package/wasm-persist)
44 [![Build Status](https://img.shields.io/travis/dfinity/wasm-persist.svg?branch=master&style=flat-square)](https://travis-ci.org/dfinity/wasm-persist)
55 [![Coverage Status](https://img.shields.io/coveralls/dfinity/wasm-persist.svg?style=flat-square)](https://coveralls.io/r/dfinity/wasm-persist)
66
7-[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
7 +[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
88
9-This allows you to hibernate a WebAssembly instance and later start it up again
10-at the exact place you left off
9 +This allows you to hibernate a WebAssembly instance and later start it up again at the exact place you left off.
1110
1211 # INSTALL
1312 `npm install wasm-persist`
1413
@@ -18,9 +17,9 @@
1817 const persist = require('wasm-persist')
1918 ...
2019 wasm = persist.prepare(wasm)
2120 const {instance} = await WebAssembly.instantiate(wasm)
22-// call some exported functions on your instance
21 +// call some exported functions on your instance
2322 // then when you are done
2423 const state = persist.hibernate(instance)
2524
2625 ...
@@ -29,16 +28,13 @@
2928 const {instance} = await WebAssembly.instantiate(wasm)
3029 // just call persist.resume with the old state
3130 persist.resume(instance, state)
3231 ```
33-# DESCIPTION
34-The Idea for wasm-persist came from [orthongal persistance](https://en.wikipedia.org/wiki/Persistence_(computer_science)#Orthogonal_or_transparent_persistence)
35-wasm-persist injects getter and setter function for each global and exports the
36-memory and table if they exist. Hibernate calls the getters and creates an Object
37-that contains the memory (as a typedArray) the globals and the function table.
38-Resume does the opposite and calls the setters for the globals and updates the
39-memory and the table. Forgein function on the table are not handled currently.
4032
33 +# DESCRIPTION
34 +The Idea for wasm-persist came from [orthogonal persistence](https://en.wikipedia.org/wiki/Persistence_(computer_science)#Orthogonal_or_transparent_persistence). wasm-persist injects getter and setter function for each global and exports the
35 +memory and table if they exist. Hibernate calls the getters and creates an Object that contains the memory (as a typedArray), the globals, and the function table. Resume does the opposite and calls the setters for the globals and updates the memory and the table. Foreign functions on the table are not handled currently.
36 +
4137 # API
4238 [./docs/](./docs/index.md)
4339
4440 # LICENSE
index.jsView
@@ -19,9 +19,9 @@
1919
2020 /**
2121 * Given a Webassembly Instance this will produce an Object containing the current state of
2222 * the instance
23- * @param {Webassembly.Instance} instance
23 + * @param {WebAssembly.Instance} instance
2424 * @param {String} symbol - the symbol that will be used to find the injected functions
2525 * @return {Object} the state of the wasm instance
2626 */
2727 function hibernate (instance, symbol = '_') {

Built with git-ssb-web