mirror of
https://github.com/konsoletyper/teavm.git
synced 2024-11-21 01:00:54 +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