From 39646d14fcec64ecb0e034a0db129e9df6884754 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Thu, 16 May 2019 20:23:31 -0700 Subject: [PATCH] [spec][js-api] Fix some links (#1020) Replace `init_store` with `store_init`. Also, reword the "Security and Privacy Considerations" section, and fix the references are using ReST syntax (which doesn't work in bikeshed). --- document/js-api/index.bs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/document/js-api/index.bs b/document/js-api/index.bs index 53c8f6db..b7dc53ef 100644 --- a/document/js-api/index.bs +++ b/document/js-api/index.bs @@ -149,6 +149,7 @@ urlPrefix: https://webassembly.github.io/spec/core/; spec: WebAssembly; type: df text: the instantiation algorithm; url: exec/modules.html#instantiation text: module; url: syntax/modules.html#syntax-module text: π—‚π—†π—‰π—ˆπ—‹π—π—Œ; url: syntax/modules.html#syntax-module + text: import; url: syntax/modules.html#syntax-import url: syntax/types.html#external-types text: external type text: π–Ώπ—Žπ—‡π–Ό @@ -218,7 +219,7 @@ fetch('demo.wasm').then(response => Note: WebAssembly semantics are defined in terms of an abstract [=store=], representing the state of the WebAssembly abstract machine. WebAssembly operations take a store and return an updated store. -Each [=agent=] has an associated store. When a new agent is created, its associated store is set to the result of [=init_store=](). +Each [=agent=] has an associated store. When a new agent is created, its associated store is set to the result of [=store_init=](). Note: In this specification, no WebAssembly-related objects, memory or addresses can be shared among agents in an [=agent cluster=]. In a future version of WebAssembly, this may change. @@ -1089,6 +1090,4 @@ In practice, an implementation may run out of resources for valid modules below

This section is non-normative.

-This document defines a host environment for WebAssembly. -It enables a WebAssembly instance to :ref:`import ` and :ref:`export ` all Javascript functions and APIs. -This WebAssembly instance is thusly bound to the same constraints as any other Javascript program. +This document defines a host environment for WebAssembly. It enables a WebAssembly instance to [=import=] JavaScript objects and functions from an [=read the imports|import object=], but otherwise provides no access to the embedding environment. Thus a WebAssembly instance is bounds to the same constraints as JavaScript.