Esempio n. 1
0
func (engine_ *Engine) NewArray(length int) *Value {
	value_ := NewValue(engine_, C.V8_NewArray(
		engine_.self, C.int(length),
	))
	/*array_ := &Array{
	    //length : length,
	  }
	  array_.Value = value_*/

	return value_
}
Esempio n. 2
0
func (e *Engine) NewArray(length int) *Value {
	return newValue(e, C.V8_NewArray(
		e.self, C.int(length),
	))
}
Esempio n. 3
0
func (cs ContextScope) NewArray(length int) *Array {
	return newValue(C.V8_NewArray(
		cs.context.self, C.int(length),
	)).ToArray()
}