royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [royale-asjs] 02/03: Revert "Add ‘glue’ utility script to allow WASM to be loaded in HTML"
Date Wed, 15 Nov 2017 06:46:55 GMT
This is an automated email from the ASF dual-hosted git repository.

erikdebruin pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 41688bc5624c06857071f922542b76c5588dc3eb
Author: Erik de Bruin <erik@ixsoftware.nl>
AuthorDate: Wed Nov 15 07:46:27 2017 +0100

    Revert "Add ‘glue’ utility script to allow WASM to be loaded in HTML"
    
    This reverts commit 3dc37ceb90c20be37639068061dba14b79e9461b.
---
 .gitignore             |  3 ---
 wast/resources/glue.js | 11 -----------
 2 files changed, 14 deletions(-)

diff --git a/.gitignore b/.gitignore
index 64c80a8..a32c5ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -141,6 +141,3 @@ vf2js/frameworks/js/
 #FlexJS generated files
 frameworks/js/FlexJS/generated-sources
 manualtests/FlexJSTest_SVG/bin
-
-#WAST generated files
-/wast/examples/HelloWorld/bin
diff --git a/wast/resources/glue.js b/wast/resources/glue.js
deleted file mode 100644
index fe66877..0000000
--- a/wast/resources/glue.js
+++ /dev/null
@@ -1,11 +0,0 @@
-function fetchAndInstantiate(url, importObject) {
-  return fetch(url).then(response =>
-    response.arrayBuffer()
-  )
-  .then(bytes =>
-    WebAssembly.instantiate(bytes, importObject)
-  )
-  .then(results =>
-    results.instance
-  );
-}

-- 
To stop receiving notification emails like this one, please contact
"commits@royale.apache.org" <commits@royale.apache.org>.

Mime
View raw message