Exemplo 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_
}
Exemplo n.º 2
0
func (e *Engine) NewArray(length int) *Value {
	return newValue(e, C.V8_NewArray(
		e.self, C.int(length),
	))
}
Exemplo n.º 3
0
func (cs ContextScope) NewArray(length int) *Array {
	return newValue(C.V8_NewArray(
		cs.context.self, C.int(length),
	)).ToArray()
}