(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestArray1(t *testing.T) { |
| 9 | r := &Runtime{} |
| 10 | a := r.newArray(nil) |
| 11 | a.setOwnIdx(valueInt(0), asciiString("test"), true) |
| 12 | if l := a.getStr("length", nil).ToInteger(); l != 1 { |
| 13 | t.Fatalf("Unexpected length: %d", l) |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | func TestArrayExportProps(t *testing.T) { |
| 18 | vm := New() |