Text file
misc/wasm/go_js_wasm_exec
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_node.js" "$@"
15
View as plain text