aboutsummaryrefslogtreecommitdiff
path: root/misc/wasm/go_js_wasm_exec
blob: b700722dfe97e57e423e1d51f50c24d778d5fc5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# Copyright 2018 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
	DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
	SOURCE="$(readlink "$SOURCE")"
	[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

exec node "$DIR/wasm_exec.js" "$@"