Skip to content

Commit

Permalink
fix(wasm): resolve issue by adding function to create a new developme…
Browse files Browse the repository at this point in the history
…nt container
  • Loading branch information
tolgaOzen committed Jan 24, 2025
1 parent 2dd4ef9 commit 01ea8cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/development/wasm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ var dev *development.Development
func run() js.Func {
// Returns a new JavaScript function that wraps the Go function.
return js.FuncOf(func(this js.Value, args []js.Value) interface{} {
// Create a new development container.
dev = development.NewContainer()

// Create an empty map to hold the JSON content.
var t interface{}

Expand Down
Binary file modified playground/public/play.wasm
Binary file not shown.

0 comments on commit 01ea8cb

Please sign in to comment.