From fe805d7fd137d60657dfc1761fb77f905b7047b8 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 28 Oct 2019 00:04:23 +0900 Subject: [PATCH] audio/vorbis/internal/stb: Bug fix: Forbid to use it from Wasm --- audio/vorbis/internal/stb/decode.go | 2 +- audio/vorbis/internal/stb/generate.go | 4 +--- audio/vorbis/internal/stb/stbvorbis.js.go | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/audio/vorbis/internal/stb/decode.go b/audio/vorbis/internal/stb/decode.go index f04da3fd3..67141a694 100644 --- a/audio/vorbis/internal/stb/decode.go +++ b/audio/vorbis/internal/stb/decode.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build js !wasm +// +build js,!wasm package stb diff --git a/audio/vorbis/internal/stb/generate.go b/audio/vorbis/internal/stb/generate.go index bd528ad8e..7305826a0 100644 --- a/audio/vorbis/internal/stb/generate.go +++ b/audio/vorbis/internal/stb/generate.go @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build js !wasm - package stb // stbvorbis.js @@ -21,4 +19,4 @@ package stb // License: Apache License 2.0 // Commit: ac1c2ee9d24eb6085eb1e968f55e0fb32cacc03a -//go:generate file2byteslice -package=stb -input=stbvorbis.js -output=stbvorbis.js.go -var=stbvorbis_js -buildtags "js !wasm" +//go:generate file2byteslice -package=stb -input=stbvorbis.js -output=stbvorbis.js.go -var=stbvorbis_js -buildtags "js,!wasm" diff --git a/audio/vorbis/internal/stb/stbvorbis.js.go b/audio/vorbis/internal/stb/stbvorbis.js.go index 4cb3effc8..1eb5273e5 100644 --- a/audio/vorbis/internal/stb/stbvorbis.js.go +++ b/audio/vorbis/internal/stb/stbvorbis.js.go @@ -1,7 +1,7 @@ // Code generated by file2byteslice. DO NOT EDIT. // (gofmt is fine after generating) -// +build js !wasm +// +build js,!wasm package stb