Disable unsafe for GopherJS compiler.

This commit is contained in:
Jonathan Hall 2016-09-06 18:29:41 +02:00
parent 6cf5744a04
commit 100382ed2b
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
// NOTE: Due to the following build constraints, this file will only be compiled // 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" // when the code is not running on Google App Engine and "-tags disableunsafe"
// is not added to the go build command line. // is not added to the go build command line.
// +build !appengine,!disableunsafe // +build !appengine,!disableunsafe,!js
package spew package spew

View File

@ -15,7 +15,7 @@
// NOTE: Due to the following build constraints, this file will only be compiled // 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" // when either the code is running on Google App Engine or "-tags disableunsafe"
// is added to the go build command line. // is added to the go build command line.
// +build appengine disableunsafe // +build appengine disableunsafe js
package spew package spew

View File

@ -15,7 +15,7 @@
// NOTE: Due to the following build constraints, this file will only be compiled // 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" // when the code is not running on Google App Engine and "-tags disableunsafe"
// is not added to the go build command line. // is not added to the go build command line.
// +build !appengine,!disableunsafe // +build !appengine,!disableunsafe,!js
/* /*
This test file is part of the spew package rather than than the spew_test This test file is part of the spew package rather than than the spew_test