Skip to content

Commit bed69dc

Browse files
committed
Address style feedback
1 parent 3d4e049 commit bed69dc

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test:
2020
- diff -u <(echo -n) <(go list ./compiler/natives/src/...) # All those packages should have // +build js.
2121
- gopherjs install -v net/http # Should build successfully (can't run tests, since only client is supported).
2222
- >
23-
ulimit -s 10000 && ulimit -s && gopherjs test --short -v --minify
23+
ulimit -s 10000 && gopherjs test --minify -v --short
2424
github.com/gopherjs/gopherjs/tests
2525
github.com/gopherjs/gopherjs/tests/main
2626
github.com/gopherjs/gopherjs/js

tool.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -750,26 +750,25 @@ func runNode(script string, args []string, dir string, quiet bool) error {
750750
}
751751

752752
if runtime.GOOS != "windows" {
753-
// For non-windows OS environments, we've seen issues with stack space
754-
// limits causeing Go std library tests that are recursion-heavy to fail
755-
// (see https://github.com/gopherjs/gopherjs/issues/661 for more detail).
753+
// For non-Windows environments, we've seen issues with stack space
754+
// limits causing Go standard library tests that are recursion-heavy to
755+
// fail (see https://github.com/gopherjs/gopherjs/issues/661 for more details).
756756
//
757-
// There are two limits that come into play here, listed in order:
757+
// There are two limits that come into play here:
758758
//
759759
// 1. V8 limit (NodeJS effectively wraps V8)
760760
// 2. OS process limit
761761
//
762762
// In order to limit the surface area of the gopherjs command and not
763-
// expose V8 flags/options etc to the caller, we control limit 1 via
764-
// limit 2. That is to say, whatever value is returned by ulimit -s is
765-
// essentially the value that we pass on to NodeJS via the appropriate V8
766-
// flag.
763+
// expose V8 flags/options etc. to the caller, we control limit 1 via
764+
// limit 2. Whatever value is returned by ulimit -s is the value that we
765+
// pass on to NodeJS via the appropriate V8 flag.
767766
var r syscall.Rlimit
768767
err := syscall.Getrlimit(syscall.RLIMIT_STACK, &r)
769768
if err != nil {
770769
return fmt.Errorf("failed to get stack size limit: %v", err)
771770
}
772-
// rlimit value is in bytes, we need rounded kBytes value per node --v8-options.
771+
// rlimit value is in bytes, we need rounded kilobytes value per node --v8-options.
773772
stackSize := fmt.Sprintf("--stack_size=%v", r.Cur/1000)
774773
allArgs = append(allArgs, stackSize)
775774
}

0 commit comments

Comments
 (0)