Skip to content

Commit d0a3b22

Browse files
committed
chore: remove unnecessary comments
1 parent 5ebfbc6 commit d0a3b22

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

evaluator/builtins_wasm.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build wasm && js
22

3-
// Modified version with of the builtins.go file with browser friendly functions.
3+
// Modified version with of the builtins.go file with browser friendly versions of functions.
44
package evaluator
55

66
import (
@@ -36,13 +36,6 @@ var builtins = map[string]*object.Builtin{
3636
result = jsPromptFunction.Invoke(args[0].Inspect())
3737
}
3838

39-
// fmt.Println("the arguments", args[0].Inspect())
40-
// fmt.Println("the result of window.prompt", result.String())
41-
42-
// buffer := bufio.NewReader(os.Stdin)
43-
44-
// line, _, err := buffer.ReadLine()
45-
4639
if result.String() == ""|| result.String() == "null" {
4740
return newError("Nimeshindwa kusoma uliyo yajaza")
4841
}
@@ -64,9 +57,7 @@ var builtins = map[string]*object.Builtin{
6457
arr = append(arr, arg.Inspect())
6558
}
6659
str := strings.Join(arr, " ")
67-
// fmt.Println(str) // removed Print to console
68-
// return &object.String{Value: str} // return the output
69-
jsOutputReceiverFunction.Invoke(str)
60+
jsOutputReceiverFunction.Invoke(str) // pipe output to js land
7061
}
7162
return nil
7263
},

0 commit comments

Comments
 (0)