server
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package builtins
|
||||
|
||||
import (
|
||||
"monkey/internal/context"
|
||||
"monkey/internal/object"
|
||||
"monkey/internal/typing"
|
||||
"syscall"
|
||||
@@ -10,7 +11,7 @@ import (
|
||||
const DefaultBufferSize = 4096
|
||||
|
||||
// Read ...
|
||||
func Read(args ...object.Object) object.Object {
|
||||
func Read(ctx context.Context, args ...object.Object) object.Object {
|
||||
if err := typing.Check(
|
||||
"read", args,
|
||||
typing.RangeOfArgs(1, 2),
|
||||
|
||||
Reference in New Issue
Block a user