mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Update chromedp to fix console errors (#1521)
This commit is contained in:
144
vendor/github.com/chromedp/cdproto/runtime/easyjson.go
generated
vendored
144
vendor/github.com/chromedp/cdproto/runtime/easyjson.go
generated
vendored
@@ -28,7 +28,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime(in *jlexer.Lexer, out
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -87,7 +87,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime1(in *jlexer.Lexer, ou
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -160,7 +160,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime2(in *jlexer.Lexer, ou
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -313,7 +313,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime3(in *jlexer.Lexer, ou
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -379,7 +379,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime4(in *jlexer.Lexer, ou
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -445,7 +445,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime5(in *jlexer.Lexer, ou
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -540,7 +540,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime6(in *jlexer.Lexer, ou
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -655,7 +655,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime7(in *jlexer.Lexer, ou
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -714,7 +714,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime8(in *jlexer.Lexer, ou
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -780,7 +780,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime9(in *jlexer.Lexer, ou
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -918,7 +918,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime10(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -984,7 +984,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime11(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -1050,7 +1050,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime12(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -1125,7 +1125,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime13(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -1198,7 +1198,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime14(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -1300,7 +1300,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime15(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -1461,7 +1461,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime16(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -1572,7 +1572,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime17(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -1759,7 +1759,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime18(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -1840,7 +1840,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime19(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -1937,7 +1937,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime20(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2004,7 +2004,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime21(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2241,7 +2241,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime22(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2328,7 +2328,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime23(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2395,7 +2395,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime24(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2454,7 +2454,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime25(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2533,7 +2533,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime26(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2592,7 +2592,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime27(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2606,6 +2606,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime27(in *jlexer.Lexer, o
|
||||
out.Origin = string(in.String())
|
||||
case "name":
|
||||
out.Name = string(in.String())
|
||||
case "uniqueId":
|
||||
out.UniqueID = string(in.String())
|
||||
case "auxData":
|
||||
(out.AuxData).UnmarshalEasyJSON(in)
|
||||
default:
|
||||
@@ -2637,6 +2639,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime27(out *jwriter.Writer
|
||||
out.RawString(prefix)
|
||||
out.String(string(in.Name))
|
||||
}
|
||||
{
|
||||
const prefix string = ",\"uniqueId\":"
|
||||
out.RawString(prefix)
|
||||
out.String(string(in.UniqueID))
|
||||
}
|
||||
if (in.AuxData).IsDefined() {
|
||||
const prefix string = ",\"auxData\":"
|
||||
out.RawString(prefix)
|
||||
@@ -2679,7 +2686,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime28(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2721,6 +2728,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime28(in *jlexer.Lexer, o
|
||||
}
|
||||
case "executionContextId":
|
||||
out.ExecutionContextID = ExecutionContextID(in.Int64())
|
||||
case "exceptionMetaData":
|
||||
(out.ExceptionMetaData).UnmarshalEasyJSON(in)
|
||||
default:
|
||||
in.SkipRecursive()
|
||||
}
|
||||
@@ -2780,6 +2789,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime28(out *jwriter.Writer
|
||||
out.RawString(prefix)
|
||||
out.Int64(int64(in.ExecutionContextID))
|
||||
}
|
||||
if (in.ExceptionMetaData).IsDefined() {
|
||||
const prefix string = ",\"exceptionMetaData\":"
|
||||
out.RawString(prefix)
|
||||
(in.ExceptionMetaData).MarshalEasyJSON(out)
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
@@ -2817,7 +2831,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime29(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2902,7 +2916,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime30(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -2961,7 +2975,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime31(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3027,7 +3041,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime32(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3105,7 +3119,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime33(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3202,7 +3216,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime34(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3275,7 +3289,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime35(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3440,7 +3454,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime36(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3520,7 +3534,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime37(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3615,7 +3629,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime38(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3649,6 +3663,10 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime38(in *jlexer.Lexer, o
|
||||
out.DisableBreaks = bool(in.Bool())
|
||||
case "replMode":
|
||||
out.ReplMode = bool(in.Bool())
|
||||
case "allowUnsafeEvalBlockedByCSP":
|
||||
out.AllowUnsafeEvalBlockedByCSP = bool(in.Bool())
|
||||
case "uniqueContextId":
|
||||
out.UniqueContextID = string(in.String())
|
||||
default:
|
||||
in.SkipRecursive()
|
||||
}
|
||||
@@ -3728,6 +3746,16 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime38(out *jwriter.Writer
|
||||
out.RawString(prefix)
|
||||
out.Bool(bool(in.ReplMode))
|
||||
}
|
||||
if in.AllowUnsafeEvalBlockedByCSP {
|
||||
const prefix string = ",\"allowUnsafeEvalBlockedByCSP\":"
|
||||
out.RawString(prefix)
|
||||
out.Bool(bool(in.AllowUnsafeEvalBlockedByCSP))
|
||||
}
|
||||
if in.UniqueContextID != "" {
|
||||
const prefix string = ",\"uniqueContextId\":"
|
||||
out.RawString(prefix)
|
||||
out.String(string(in.UniqueContextID))
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
@@ -3765,7 +3793,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime39(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3864,7 +3892,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime40(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3923,7 +3951,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime41(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -3982,7 +4010,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime42(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4041,7 +4069,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime43(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4114,7 +4142,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime44(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4201,7 +4229,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime45(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4288,7 +4316,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime46(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4383,7 +4411,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime47(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4554,7 +4582,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime48(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4648,7 +4676,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime49(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4739,7 +4767,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime50(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4834,7 +4862,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime51(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4914,7 +4942,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime52(in *jlexer.Lexer, o
|
||||
}
|
||||
in.Delim('{')
|
||||
for !in.IsDelim('}') {
|
||||
key := in.UnsafeString()
|
||||
key := in.UnsafeFieldName(false)
|
||||
in.WantColon()
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
@@ -4924,8 +4952,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime52(in *jlexer.Lexer, o
|
||||
switch key {
|
||||
case "name":
|
||||
out.Name = string(in.String())
|
||||
case "executionContextId":
|
||||
out.ExecutionContextID = ExecutionContextID(in.Int64())
|
||||
case "executionContextName":
|
||||
out.ExecutionContextName = string(in.String())
|
||||
default:
|
||||
in.SkipRecursive()
|
||||
}
|
||||
@@ -4945,10 +4973,10 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime52(out *jwriter.Writer
|
||||
out.RawString(prefix[1:])
|
||||
out.String(string(in.Name))
|
||||
}
|
||||
if in.ExecutionContextID != 0 {
|
||||
const prefix string = ",\"executionContextId\":"
|
||||
if in.ExecutionContextName != "" {
|
||||
const prefix string = ",\"executionContextName\":"
|
||||
out.RawString(prefix)
|
||||
out.Int64(int64(in.ExecutionContextID))
|
||||
out.String(string(in.ExecutionContextName))
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
85
vendor/github.com/chromedp/cdproto/runtime/runtime.go
generated
vendored
85
vendor/github.com/chromedp/cdproto/runtime/runtime.go
generated
vendored
@@ -293,19 +293,21 @@ func (p *EnableParams) Do(ctx context.Context) (err error) {
|
||||
|
||||
// EvaluateParams evaluates expression on global object.
|
||||
type EvaluateParams struct {
|
||||
Expression string `json:"expression"` // Expression to evaluate.
|
||||
ObjectGroup string `json:"objectGroup,omitempty"` // Symbolic group name that can be used to release multiple objects.
|
||||
IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"` // Determines whether Command Line API should be available during the evaluation.
|
||||
Silent bool `json:"silent,omitempty"` // In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
|
||||
ContextID ExecutionContextID `json:"contextId,omitempty"` // Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
|
||||
ReturnByValue bool `json:"returnByValue,omitempty"` // Whether the result is expected to be a JSON object that should be sent by value.
|
||||
GeneratePreview bool `json:"generatePreview,omitempty"` // Whether preview should be generated for the result.
|
||||
UserGesture bool `json:"userGesture,omitempty"` // Whether execution should be treated as initiated by user in the UI.
|
||||
AwaitPromise bool `json:"awaitPromise,omitempty"` // Whether execution should await for resulting value and return once awaited promise is resolved.
|
||||
ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"` // Whether to throw an exception if side effect cannot be ruled out during evaluation. This implies disableBreaks below.
|
||||
Timeout TimeDelta `json:"timeout,omitempty"` // Terminate execution after timing out (number of milliseconds).
|
||||
DisableBreaks bool `json:"disableBreaks,omitempty"` // Disable breakpoints during execution.
|
||||
ReplMode bool `json:"replMode,omitempty"` // Setting this flag to true enables let re-declaration and top-level await. Note that let variables can only be re-declared if they originate from replMode themselves.
|
||||
Expression string `json:"expression"` // Expression to evaluate.
|
||||
ObjectGroup string `json:"objectGroup,omitempty"` // Symbolic group name that can be used to release multiple objects.
|
||||
IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"` // Determines whether Command Line API should be available during the evaluation.
|
||||
Silent bool `json:"silent,omitempty"` // In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
|
||||
ContextID ExecutionContextID `json:"contextId,omitempty"` // Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. This is mutually exclusive with uniqueContextId, which offers an alternative way to identify the execution context that is more reliable in a multi-process environment.
|
||||
ReturnByValue bool `json:"returnByValue,omitempty"` // Whether the result is expected to be a JSON object that should be sent by value.
|
||||
GeneratePreview bool `json:"generatePreview,omitempty"` // Whether preview should be generated for the result.
|
||||
UserGesture bool `json:"userGesture,omitempty"` // Whether execution should be treated as initiated by user in the UI.
|
||||
AwaitPromise bool `json:"awaitPromise,omitempty"` // Whether execution should await for resulting value and return once awaited promise is resolved.
|
||||
ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"` // Whether to throw an exception if side effect cannot be ruled out during evaluation. This implies disableBreaks below.
|
||||
Timeout TimeDelta `json:"timeout,omitempty"` // Terminate execution after timing out (number of milliseconds).
|
||||
DisableBreaks bool `json:"disableBreaks,omitempty"` // Disable breakpoints during execution.
|
||||
ReplMode bool `json:"replMode,omitempty"` // Setting this flag to true enables let re-declaration and top-level await. Note that let variables can only be re-declared if they originate from replMode themselves.
|
||||
AllowUnsafeEvalBlockedByCSP bool `json:"allowUnsafeEvalBlockedByCSP,omitempty"` // The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. This flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to true.
|
||||
UniqueContextID string `json:"uniqueContextId,omitempty"` // An alternative way to specify the execution context to evaluate in. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental evaluation of the expression in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with contextId.
|
||||
}
|
||||
|
||||
// Evaluate evaluates expression on global object.
|
||||
@@ -343,7 +345,9 @@ func (p EvaluateParams) WithSilent(silent bool) *EvaluateParams {
|
||||
|
||||
// WithContextID specifies in which execution context to perform evaluation.
|
||||
// If the parameter is omitted the evaluation will be performed in the context
|
||||
// of the inspected page.
|
||||
// of the inspected page. This is mutually exclusive with uniqueContextId, which
|
||||
// offers an alternative way to identify the execution context that is more
|
||||
// reliable in a multi-process environment.
|
||||
func (p EvaluateParams) WithContextID(contextID ExecutionContextID) *EvaluateParams {
|
||||
p.ContextID = contextID
|
||||
return &p
|
||||
@@ -403,6 +407,27 @@ func (p EvaluateParams) WithReplMode(replMode bool) *EvaluateParams {
|
||||
return &p
|
||||
}
|
||||
|
||||
// WithAllowUnsafeEvalBlockedByCSP the Content Security Policy (CSP) for the
|
||||
// target might block 'unsafe-eval' which includes eval(), Function(),
|
||||
// setTimeout() and setInterval() when called with non-callable arguments. This
|
||||
// flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to
|
||||
// true.
|
||||
func (p EvaluateParams) WithAllowUnsafeEvalBlockedByCSP(allowUnsafeEvalBlockedByCSP bool) *EvaluateParams {
|
||||
p.AllowUnsafeEvalBlockedByCSP = allowUnsafeEvalBlockedByCSP
|
||||
return &p
|
||||
}
|
||||
|
||||
// WithUniqueContextID an alternative way to specify the execution context to
|
||||
// evaluate in. Compared to contextId that may be reused across processes, this
|
||||
// is guaranteed to be system-unique, so it can be used to prevent accidental
|
||||
// evaluation of the expression in context different than intended (e.g. as a
|
||||
// result of navigation across process boundaries). This is mutually exclusive
|
||||
// with contextId.
|
||||
func (p EvaluateParams) WithUniqueContextID(uniqueContextID string) *EvaluateParams {
|
||||
p.UniqueContextID = uniqueContextID
|
||||
return &p
|
||||
}
|
||||
|
||||
// EvaluateReturns return values.
|
||||
type EvaluateReturns struct {
|
||||
Result *RemoteObject `json:"result,omitempty"` // Evaluation result.
|
||||
@@ -866,23 +891,21 @@ func (p *TerminateExecutionParams) Do(ctx context.Context) (err error) {
|
||||
|
||||
// AddBindingParams if executionContextId is empty, adds binding with the
|
||||
// given name on the global objects of all inspected contexts, including those
|
||||
// created later, bindings survive reloads. If executionContextId is specified,
|
||||
// adds binding only on global object of given execution context. Binding
|
||||
// function takes exactly one argument, this argument should be string, in case
|
||||
// of any other input, function throws an exception. Each binding function call
|
||||
// produces Runtime.bindingCalled notification.
|
||||
// created later, bindings survive reloads. Binding function takes exactly one
|
||||
// argument, this argument should be string, in case of any other input,
|
||||
// function throws an exception. Each binding function call produces
|
||||
// Runtime.bindingCalled notification.
|
||||
type AddBindingParams struct {
|
||||
Name string `json:"name"`
|
||||
ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"`
|
||||
Name string `json:"name"`
|
||||
ExecutionContextName string `json:"executionContextName,omitempty"` // If specified, the binding is exposed to the executionContext with matching name, even for contexts created after the binding is added. See also ExecutionContext.name and worldName parameter to Page.addScriptToEvaluateOnNewDocument. This parameter is mutually exclusive with executionContextId.
|
||||
}
|
||||
|
||||
// AddBinding if executionContextId is empty, adds binding with the given
|
||||
// name on the global objects of all inspected contexts, including those created
|
||||
// later, bindings survive reloads. If executionContextId is specified, adds
|
||||
// binding only on global object of given execution context. Binding function
|
||||
// takes exactly one argument, this argument should be string, in case of any
|
||||
// other input, function throws an exception. Each binding function call
|
||||
// produces Runtime.bindingCalled notification.
|
||||
// later, bindings survive reloads. Binding function takes exactly one argument,
|
||||
// this argument should be string, in case of any other input, function throws
|
||||
// an exception. Each binding function call produces Runtime.bindingCalled
|
||||
// notification.
|
||||
//
|
||||
// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-addBinding
|
||||
//
|
||||
@@ -894,9 +917,13 @@ func AddBinding(name string) *AddBindingParams {
|
||||
}
|
||||
}
|
||||
|
||||
// WithExecutionContextID [no description].
|
||||
func (p AddBindingParams) WithExecutionContextID(executionContextID ExecutionContextID) *AddBindingParams {
|
||||
p.ExecutionContextID = executionContextID
|
||||
// WithExecutionContextName if specified, the binding is exposed to the
|
||||
// executionContext with matching name, even for contexts created after the
|
||||
// binding is added. See also ExecutionContext.name and worldName parameter to
|
||||
// Page.addScriptToEvaluateOnNewDocument. This parameter is mutually exclusive
|
||||
// with executionContextId.
|
||||
func (p AddBindingParams) WithExecutionContextName(executionContextName string) *AddBindingParams {
|
||||
p.ExecutionContextName = executionContextName
|
||||
return &p
|
||||
}
|
||||
|
||||
|
||||
104
vendor/github.com/chromedp/cdproto/runtime/types.go
generated
vendored
104
vendor/github.com/chromedp/cdproto/runtime/types.go
generated
vendored
@@ -6,6 +6,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/mailru/easyjson"
|
||||
@@ -49,7 +50,7 @@ func (t UnserializableValue) String() string {
|
||||
// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-RemoteObject
|
||||
type RemoteObject struct {
|
||||
Type Type `json:"type"` // Object type.
|
||||
Subtype Subtype `json:"subtype,omitempty"` // Object subtype hint. Specified for object or wasm type values only.
|
||||
Subtype Subtype `json:"subtype,omitempty"` // Object subtype hint. Specified for object type values only. NOTE: If you change anything here, make sure to also update subtype in ObjectPreview and PropertyPreview below.
|
||||
ClassName string `json:"className,omitempty"` // Object class (constructor) name. Specified for object type values only.
|
||||
Value easyjson.RawMessage `json:"value,omitempty"` // Remote object value in case of primitive values or JSON values (if it was requested).
|
||||
UnserializableValue UnserializableValue `json:"unserializableValue,omitempty"` // Primitive value which can not be JSON-stringified does not have value, but gets this property.
|
||||
@@ -158,10 +159,11 @@ func (t ExecutionContextID) Int64() int64 {
|
||||
//
|
||||
// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-ExecutionContextDescription
|
||||
type ExecutionContextDescription struct {
|
||||
ID ExecutionContextID `json:"id"` // Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
|
||||
Origin string `json:"origin"` // Execution context origin.
|
||||
Name string `json:"name"` // Human readable name describing given context.
|
||||
AuxData easyjson.RawMessage `json:"auxData,omitempty"`
|
||||
ID ExecutionContextID `json:"id"` // Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
|
||||
Origin string `json:"origin"` // Execution context origin.
|
||||
Name string `json:"name"` // Human readable name describing given context.
|
||||
UniqueID string `json:"uniqueId"` // A system-unique execution context identifier. Unlike the id, this is unique across multiple processes, so can be reliably used to identify specific context while backend performs a cross-process navigation.
|
||||
AuxData easyjson.RawMessage `json:"auxData,omitempty"`
|
||||
}
|
||||
|
||||
// ExceptionDetails detailed information about exception (or error) that was
|
||||
@@ -169,22 +171,28 @@ type ExecutionContextDescription struct {
|
||||
//
|
||||
// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-ExceptionDetails
|
||||
type ExceptionDetails struct {
|
||||
ExceptionID int64 `json:"exceptionId"` // Exception id.
|
||||
Text string `json:"text"` // Exception text, which should be used together with exception object when available.
|
||||
LineNumber int64 `json:"lineNumber"` // Line number of the exception location (0-based).
|
||||
ColumnNumber int64 `json:"columnNumber"` // Column number of the exception location (0-based).
|
||||
ScriptID ScriptID `json:"scriptId,omitempty"` // Script ID of the exception location.
|
||||
URL string `json:"url,omitempty"` // URL of the exception location, to be used when the script was not reported.
|
||||
StackTrace *StackTrace `json:"stackTrace,omitempty"` // JavaScript stack trace if available.
|
||||
Exception *RemoteObject `json:"exception,omitempty"` // Exception object if available.
|
||||
ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // Identifier of the context where exception happened.
|
||||
ExceptionID int64 `json:"exceptionId"` // Exception id.
|
||||
Text string `json:"text"` // Exception text, which should be used together with exception object when available.
|
||||
LineNumber int64 `json:"lineNumber"` // Line number of the exception location (0-based).
|
||||
ColumnNumber int64 `json:"columnNumber"` // Column number of the exception location (0-based).
|
||||
ScriptID ScriptID `json:"scriptId,omitempty"` // Script ID of the exception location.
|
||||
URL string `json:"url,omitempty"` // URL of the exception location, to be used when the script was not reported.
|
||||
StackTrace *StackTrace `json:"stackTrace,omitempty"` // JavaScript stack trace if available.
|
||||
Exception *RemoteObject `json:"exception,omitempty"` // Exception object if available.
|
||||
ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // Identifier of the context where exception happened.
|
||||
ExceptionMetaData easyjson.RawMessage `json:"exceptionMetaData,omitempty"`
|
||||
}
|
||||
|
||||
// Error satisfies the error interface.
|
||||
func (e *ExceptionDetails) Error() string {
|
||||
var b strings.Builder
|
||||
// TODO: watch script parsed events and match the ExceptionDetails.ScriptID
|
||||
// to the name/location of the actual code and display here
|
||||
return fmt.Sprintf("encountered exception '%s' (%d:%d)", e.Text, e.LineNumber, e.ColumnNumber)
|
||||
fmt.Fprintf(&b, "exception %q (%d:%d)", e.Text, e.LineNumber, e.ColumnNumber)
|
||||
if obj := e.Exception; obj != nil {
|
||||
fmt.Fprintf(&b, ": %s", obj.Description)
|
||||
}
|
||||
return b.String()
|
||||
}
|
||||
|
||||
// Timestamp number of milliseconds since epoch.
|
||||
@@ -291,7 +299,6 @@ const (
|
||||
TypeBoolean Type = "boolean"
|
||||
TypeSymbol Type = "symbol"
|
||||
TypeBigint Type = "bigint"
|
||||
TypeWasm Type = "wasm"
|
||||
TypeAccessor Type = "accessor"
|
||||
)
|
||||
|
||||
@@ -324,8 +331,6 @@ func (t *Type) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||
*t = TypeSymbol
|
||||
case TypeBigint:
|
||||
*t = TypeBigint
|
||||
case TypeWasm:
|
||||
*t = TypeWasm
|
||||
case TypeAccessor:
|
||||
*t = TypeAccessor
|
||||
|
||||
@@ -339,8 +344,9 @@ func (t *Type) UnmarshalJSON(buf []byte) error {
|
||||
return easyjson.Unmarshal(buf, t)
|
||||
}
|
||||
|
||||
// Subtype object subtype hint. Specified for object or wasm type values
|
||||
// only.
|
||||
// Subtype object subtype hint. Specified for object type values only. NOTE:
|
||||
// If you change anything here, make sure to also update subtype in
|
||||
// ObjectPreview and PropertyPreview below.
|
||||
//
|
||||
// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-RemoteObject
|
||||
type Subtype string
|
||||
@@ -352,29 +358,25 @@ func (t Subtype) String() string {
|
||||
|
||||
// Subtype values.
|
||||
const (
|
||||
SubtypeArray Subtype = "array"
|
||||
SubtypeNull Subtype = "null"
|
||||
SubtypeNode Subtype = "node"
|
||||
SubtypeRegexp Subtype = "regexp"
|
||||
SubtypeDate Subtype = "date"
|
||||
SubtypeMap Subtype = "map"
|
||||
SubtypeSet Subtype = "set"
|
||||
SubtypeWeakmap Subtype = "weakmap"
|
||||
SubtypeWeakset Subtype = "weakset"
|
||||
SubtypeIterator Subtype = "iterator"
|
||||
SubtypeGenerator Subtype = "generator"
|
||||
SubtypeError Subtype = "error"
|
||||
SubtypeProxy Subtype = "proxy"
|
||||
SubtypePromise Subtype = "promise"
|
||||
SubtypeTypedarray Subtype = "typedarray"
|
||||
SubtypeArraybuffer Subtype = "arraybuffer"
|
||||
SubtypeDataview Subtype = "dataview"
|
||||
SubtypeI32 Subtype = "i32"
|
||||
SubtypeI64 Subtype = "i64"
|
||||
SubtypeF32 Subtype = "f32"
|
||||
SubtypeF64 Subtype = "f64"
|
||||
SubtypeV128 Subtype = "v128"
|
||||
SubtypeAnyref Subtype = "anyref"
|
||||
SubtypeArray Subtype = "array"
|
||||
SubtypeNull Subtype = "null"
|
||||
SubtypeNode Subtype = "node"
|
||||
SubtypeRegexp Subtype = "regexp"
|
||||
SubtypeDate Subtype = "date"
|
||||
SubtypeMap Subtype = "map"
|
||||
SubtypeSet Subtype = "set"
|
||||
SubtypeWeakmap Subtype = "weakmap"
|
||||
SubtypeWeakset Subtype = "weakset"
|
||||
SubtypeIterator Subtype = "iterator"
|
||||
SubtypeGenerator Subtype = "generator"
|
||||
SubtypeError Subtype = "error"
|
||||
SubtypeProxy Subtype = "proxy"
|
||||
SubtypePromise Subtype = "promise"
|
||||
SubtypeTypedarray Subtype = "typedarray"
|
||||
SubtypeArraybuffer Subtype = "arraybuffer"
|
||||
SubtypeDataview Subtype = "dataview"
|
||||
SubtypeWebassemblymemory Subtype = "webassemblymemory"
|
||||
SubtypeWasmvalue Subtype = "wasmvalue"
|
||||
)
|
||||
|
||||
// MarshalEasyJSON satisfies easyjson.Marshaler.
|
||||
@@ -424,18 +426,10 @@ func (t *Subtype) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||
*t = SubtypeArraybuffer
|
||||
case SubtypeDataview:
|
||||
*t = SubtypeDataview
|
||||
case SubtypeI32:
|
||||
*t = SubtypeI32
|
||||
case SubtypeI64:
|
||||
*t = SubtypeI64
|
||||
case SubtypeF32:
|
||||
*t = SubtypeF32
|
||||
case SubtypeF64:
|
||||
*t = SubtypeF64
|
||||
case SubtypeV128:
|
||||
*t = SubtypeV128
|
||||
case SubtypeAnyref:
|
||||
*t = SubtypeAnyref
|
||||
case SubtypeWebassemblymemory:
|
||||
*t = SubtypeWebassemblymemory
|
||||
case SubtypeWasmvalue:
|
||||
*t = SubtypeWasmvalue
|
||||
|
||||
default:
|
||||
in.AddError(errors.New("unknown Subtype value"))
|
||||
|
||||
Reference in New Issue
Block a user