mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-03 05:44:10 -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() {
|
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;
|
return typeof value !== 'undefined' ? value : null;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user