This is an automated email from the ASF dual-hosted git repository. erikdebruin pushed a commit to branch feature/wast in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 57b2606f8ceb02f7ec0abbd13d26ad9db9c82c36 Author: Erik de Bruin <[email protected]> AuthorDate: Wed Nov 15 15:56:55 2017 +0100 Minor refactoring to keep the linter and my esthetics satisfied Signed-off-by: Erik de Bruin <[email protected]> --- wast/resources/glue.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/wast/resources/glue.js b/wast/resources/glue.js index 0a14ece..dda9d9b 100644 --- a/wast/resources/glue.js +++ b/wast/resources/glue.js @@ -17,8 +17,13 @@ * */ -function fetchAndInstantiate(url, importObject) { - return fetch(url).then(response => +'use strict'; + +// eslint-disable-next-line no-unused-vars +let fetchAndInstantiate; + +fetchAndInstantiate = function (url, importObject) { + return window.fetch(url).then(response => response.arrayBuffer() ) .then(bytes => @@ -27,4 +32,4 @@ function fetchAndInstantiate(url, importObject) { .then(results => results.instance ); -} +}; -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
