Skip to content

Commit

Permalink
Disable unsafe for GopherJS compiler.
Browse files Browse the repository at this point in the history
* Disable unsafe for GopherJS compiler.
* Update comments to reflect GopherJS build constraints
  • Loading branch information
flimzy authored and davecgh committed Sep 7, 2016
1 parent 3838b68 commit 66f99a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions spew/bypass.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

// NOTE: Due to the following build constraints, this file will only be compiled
// when the code is not running on Google App Engine and "-tags disableunsafe"
// is not added to the go build command line.
// +build !appengine,!disableunsafe
// when the code is not running on Google App Engine, compiled by GopherJS, and
// "-tags disableunsafe" is not added to the go build command line.
// +build !appengine,!disableunsafe,!js

package spew

Expand Down
6 changes: 3 additions & 3 deletions spew/bypasssafe.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

// NOTE: Due to the following build constraints, this file will only be compiled
// when either the code is running on Google App Engine or "-tags disableunsafe"
// is added to the go build command line.
// +build appengine disableunsafe
// when the code is running on Google App Engine, compiled by GopherJS, or
// "-tags disableunsafe" is added to the go build command line.
// +build appengine disableunsafe js

package spew

Expand Down
6 changes: 3 additions & 3 deletions spew/internalunsafe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

// NOTE: Due to the following build constraints, this file will only be compiled
// when the code is not running on Google App Engine and "-tags disableunsafe"
// is not added to the go build command line.
// +build !appengine,!disableunsafe
// when the code is not running on Google App Engine, compiled by GopherJS, and
// "-tags disableunsafe" is not added to the go build command line.
// +build !appengine,!disableunsafe,!js

/*
This test file is part of the spew package rather than than the spew_test
Expand Down

0 comments on commit 66f99a2

Please sign in to comment.