forked from robertkrimen/otto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.go
35 lines (31 loc) · 906 Bytes
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package otto
const (
// Common classes.
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.
propertyName = "name"
propertyLength = "length"
propertyPrototype = "prototype"
propertyConstructor = "constructor"
// Common methods.
methodToString = "toString"
)