github.com/hikaru7719/go@v0.0.0-20181025140707-c8b2ac68906a/misc/wasm/go_js_wasm_exec (about) 1 #!/bin/bash 2 # Copyright 2018 The Go Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style 4 # license that can be found in the LICENSE file. 5 6 SOURCE="${BASH_SOURCE[0]}" 7 while [ -h "$SOURCE" ]; do 8 DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" 9 SOURCE="$(readlink "$SOURCE")" 10 [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" 11 done 12 DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" 13 14 exec node "$DIR/wasm_exec.js" "$@"