mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix Chrome RDP backend
This commit is contained in:
parent
f69e3310a3
commit
0cdf960ba5
|
@ -465,6 +465,7 @@ public class ChromeRDPDebugger implements JavaScriptDebugger, ChromeRDPExchangeC
|
|||
for (PropertyDescriptorDTO property : properties) {
|
||||
RemoteObjectDTO remoteValue = property.getValue();
|
||||
RDPValue value;
|
||||
if (remoteValue != null && remoteValue.getType() != null) {
|
||||
switch (remoteValue.getType()) {
|
||||
case "undefined":
|
||||
value = new RDPValue(this, "undefined", "undefined", null, false);
|
||||
|
@ -478,6 +479,9 @@ public class ChromeRDPDebugger implements JavaScriptDebugger, ChromeRDPExchangeC
|
|||
remoteValue.getObjectId(), false);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
value = new RDPValue(this, "null", "null", "null", false);
|
||||
}
|
||||
|
||||
RDPLocalVariable var = new RDPLocalVariable(property.getName(), value);
|
||||
variables.add(var);
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
package org.teavm.samples.async;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Alexey Andreev <konsoletyper@gmail.com>
|
||||
|
@ -30,13 +29,8 @@ public final class AsyncProgram {
|
|||
withAsync();
|
||||
|
||||
System.out.println();
|
||||
|
||||
|
||||
|
||||
final Object lock = new Object();
|
||||
|
||||
Thread t = new Thread(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
|
@ -50,7 +44,6 @@ public final class AsyncProgram {
|
|||
t.start();
|
||||
|
||||
Thread t2 = new Thread(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
|
@ -59,9 +52,9 @@ public final class AsyncProgram {
|
|||
System.out.println(ex.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}, "Test Thread 2");
|
||||
t2.start();
|
||||
|
||||
System.out.println("Should be main -> Current thread is " + Thread.currentThread().getName());
|
||||
System.out.println("Now trying wait...");
|
||||
|
||||
|
@ -134,5 +127,4 @@ public final class AsyncProgram {
|
|||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user