1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-12 20:27:30 +08:00
otto/consts.go
Steven Hartland c4b94300e3
feat: support push to go slices (#460)
Add support for direct use of push to go slices without converting to
array using .slice().

Fixes #357

Also:
* Add classGoSlice and use it, to make it clear the type when debugging.
2022-11-27 23:09:00 +00:00

20 lines
382 B
Go

package otto
const (
// Common classes.
classString = "String"
classGoArray = "GoArray"
classGoSlice = "GoSlice"
classNumber = "Number"
classDate = "Date"
classArray = "Array"
classFunction = "Function"
classObject = "Object"
classRegExp = "RegExp"
classBoolean = "Boolean"
classError = "Error"
// Common properties.
propertyLength = "length"
)