go_js_wasm_exec 446 B

1234567891011121314
  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. SOURCE="${BASH_SOURCE[0]}"
  6. while [ -h "$SOURCE" ]; do
  7. DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
  8. SOURCE="$(readlink "$SOURCE")"
  9. [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
  10. done
  11. DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
  12. exec node "$DIR/wasm_exec_node.js" "$@"