rum-goggles/v1/vendor/github.com/robertkrimen/otto/consts.go

36 lines
906 B
Go
Raw Permalink Normal View History

package otto
const (
// Common classes.
2024-04-04 14:46:14 +00:00
classStringName = "String"
classGoArrayName = "GoArray"
classGoSliceName = "GoSlice"
classNumberName = "Number"
classDateName = "Date"
classArrayName = "Array"
classFunctionName = "Function"
classObjectName = "Object"
classRegExpName = "RegExp"
classBooleanName = "Boolean"
classMathName = "Math"
classJSONName = "JSON"
// Error classes.
classErrorName = "Error"
classEvalErrorName = "EvalError"
classTypeErrorName = "TypeError"
classRangeErrorName = "RangeError"
classReferenceErrorName = "ReferenceError"
classSyntaxErrorName = "SyntaxError"
classURIErrorName = "URIError"
// Common properties.
2024-04-04 14:46:14 +00:00
propertyName = "name"
propertyLength = "length"
propertyPrototype = "prototype"
propertyConstructor = "constructor"
// Common methods.
methodToString = "toString"
)