update wip protocol to chromium 51 (WEB-22491)

This commit is contained in:
Konstantin Ulitin
2016-07-21 14:22:58 +03:00
parent 384f3ca19c
commit a77525eb04
4 changed files with 6 additions and 9 deletions
@@ -68,12 +68,6 @@ enum class StepAction {
*/
IN,
/**
* Step into first scheduled async handler.
* @see <a href="https://groups.google.com/a/chromium.org/forum/#!topic/blink-reviews-bindings/LRAHGXErvOc">Chrome debugger suggestion</a>
*/
IN_ASYNC,
/**
* Step over the current statement.
*/
@@ -137,7 +137,7 @@ abstract class DebugProcessImpl<C : VmConnection<*>>(session: XDebugSession,
override final fun startStepInto(context: XSuspendContext?) {
val vm = context.vm
updateLastCallFrame(vm)
continueVm(vm, if (vm.captureAsyncStackTraces) StepAction.IN_ASYNC else StepAction.IN)
continueVm(vm, StepAction.IN)
}
override final fun startStepOut(context: XSuspendContext?) {
@@ -18,7 +18,9 @@ internal class TypeMap {
val domainGenerator = domainGeneratorMap!!.get(domainName)
if (domainGenerator == null) {
val qName = "$domainName.$typeName";
if (qName == "IO.StreamHandle" || qName == "Security.SecurityState") return BoxableType.ANY_STRING // ignore
if (qName == "IO.StreamHandle" || qName == "Security.SecurityState" || qName == "Emulation.ScreenOrientation") {
return BoxableType.ANY_STRING // ignore
}
throw RuntimeException("Failed to find domain generator: $domainName for type $typeName")
}
return direction.get(getTypeData(domainName, typeName)).resolve(this, domainGenerator)
@@ -153,7 +153,8 @@ open class OutMessage() {
writer.endArray()
}
fun writeStringList(name: String, value: Collection<String>) {
fun writeStringList(name: String, value: Collection<String>?) {
if (value == null) return
beginArguments()
JsonWriters.writeStringList(writer, name, value)
}