From f557f487161c8b512682a720e6144c778ecfba42 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Wed, 8 Feb 2017 21:35:46 +0700 Subject: [PATCH] Updating to latest protocol.json definition --- cdp/debugger/types.go | 3 +++ cmd/chromedp-gen/protocol.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cdp/debugger/types.go b/cdp/debugger/types.go index d890bfc..a03d4c3 100644 --- a/cdp/debugger/types.go +++ b/cdp/debugger/types.go @@ -148,6 +148,7 @@ const ( PausedReasonPromiseRejection PausedReason = "promiseRejection" PausedReasonOOM PausedReason = "OOM" PausedReasonOther PausedReason = "other" + PausedReasonAmbiguous PausedReason = "ambiguous" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -181,6 +182,8 @@ func (t *PausedReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PausedReasonOOM case PausedReasonOther: *t = PausedReasonOther + case PausedReasonAmbiguous: + *t = PausedReasonAmbiguous default: in.AddError(errors.New("unknown PausedReason value")) diff --git a/cmd/chromedp-gen/protocol.json b/cmd/chromedp-gen/protocol.json index 8b54d6e..9704e9a 100644 --- a/cmd/chromedp-gen/protocol.json +++ b/cmd/chromedp-gen/protocol.json @@ -12023,7 +12023,8 @@ "debugCommand", "promiseRejection", "OOM", - "other" + "other", + "ambiguous" ], "description": "Pause reason." },