[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[S8Ref] iojs3issue

This will check if the new Buffer implementation behaves like the pre io.js 3.0 one did

"should not crash"
| buffer buf2 buf3 |
0 to: 10 do: [:i|
	Smalltalk gc.
	buffer := NodeBuffer size: 8.
	buffer fill: 0.
	buf2 := S8Ref current ref: buffer.
	buf3 := S8Ref current deref: buf2.
]


"should not crash too"
| buffer buf2 buf3 |
0 to: 10 do: [:i|
	Smalltalk gc.
	buffer := NodeBuffer size: 7.
	buffer fill: 0.
	buf2 := S8Ref current ref: buffer.
	buf3 := S8Ref current deref: buf2.
]