mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
classlib: fix missing .shift() in ReferenceQueue.poll (#852)
This commit is contained in:
parent
8f8b33c0b1
commit
2256b293ab
|
@ -28,6 +28,6 @@ function init() {
|
|||
}
|
||||
|
||||
function poll() {
|
||||
var value = this[teavm_javaField("java.lang.ref.ReferenceQueue", "inner")];
|
||||
var value = this[teavm_javaField("java.lang.ref.ReferenceQueue", "inner")].shift();
|
||||
return typeof value !== 'undefined' ? value : null;
|
||||
}
|
Loading…
Reference in New Issue
Block a user