mirror of
https://github.com/robertkrimen/otto
synced 2025-10-26 20:28:49 +08:00
Split builtin.go out to builtin_*.go
This commit is contained in:
11
builtin_boolean.go
Normal file
11
builtin_boolean.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package otto
|
||||
|
||||
// Boolean
|
||||
|
||||
func builtinBoolean(call FunctionCall) Value {
|
||||
return toValue(toBoolean(call.Argument(0)))
|
||||
}
|
||||
|
||||
func builtinNewBoolean(self *_object, _ Value, argumentList []Value) Value {
|
||||
return toValue(self.runtime.newBoolean(valueOfArrayIndex(argumentList, 0)))
|
||||
}
|
||||
Reference in New Issue
Block a user