1
0
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:
Robert Krimen
2013-02-20 15:34:23 -08:00
parent 4e4e89c894
commit ec902a6452
11 changed files with 1288 additions and 1252 deletions

11
builtin_boolean.go Normal file
View 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)))
}