summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Hall <[email protected]>2016-09-07 18:16:42 +0200
committerDave Collins <[email protected]>2016-09-07 11:16:42 -0500
commit66f99a29a08158b999b0dc2e7ccacf1131d4e0b4 (patch)
treef64b51eab5f8ba3339e175a65126e9279d7dfabd
parent3838b6852dfc950bbf00eb99a945e6b8ea6c0c22 (diff)
Disable unsafe for GopherJS compiler.
* Disable unsafe for GopherJS compiler. * Update comments to reflect GopherJS build constraints
-rw-r--r--spew/bypass.go6
-rw-r--r--spew/bypasssafe.go6
-rw-r--r--spew/internalunsafe_test.go6
3 files changed, 9 insertions, 9 deletions
diff --git a/spew/bypass.go b/spew/bypass.go
index 565bf58..1de6e02 100644
--- a/spew/bypass.go
+++ b/spew/bypass.go
@@ -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
diff --git a/spew/bypasssafe.go b/spew/bypasssafe.go
index 457e412..adef4c4 100644
--- a/spew/bypasssafe.go
+++ b/spew/bypasssafe.go
@@ -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
diff --git a/spew/internalunsafe_test.go b/spew/internalunsafe_test.go
index 83e070e..ddaa41d 100644
--- a/spew/internalunsafe_test.go
+++ b/spew/internalunsafe_test.go
@@ -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