1#!/usr/bin/env 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
6SOURCE="${BASH_SOURCE[0]}"
7while [ -h "$SOURCE" ]; do
8	DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
9	SOURCE="$(readlink "$SOURCE")"
10	[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
11done
12DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
13
14# Increase the V8 stack size from the default of 984K
15# to 8192K to ensure all tests can pass without hitting
16# stack size limits.
17exec node --stack-size=8192 "$DIR/wasm_exec_node.js" "$@"
18