@@ -171,12 +171,6 @@ $root.jspb = (function() {
171171 Empty.fromObject = function fromObject(object, long) {
172172 if (object instanceof $root.jspb.test.Empty)
173173 return object;
174- if (!$util.isObject(object))
175- throw TypeError(".jspb.test.Empty: object expected");
176- if (long === undefined)
177- long = 0;
178- if (long > $util.recursionLimit)
179- throw Error("maximum nesting depth exceeded");
180174 return new $root.jspb.test.Empty();
181175 };
182176
@@ -3129,12 +3123,6 @@ $root.jspb = (function() {
31293123 OuterMessage.fromObject = function fromObject(object, long) {
31303124 if (object instanceof $root.jspb.test.OuterMessage)
31313125 return object;
3132- if (!$util.isObject(object))
3133- throw TypeError(".jspb.test.OuterMessage: object expected");
3134- if (long === undefined)
3135- long = 0;
3136- if (long > $util.recursionLimit)
3137- throw Error("maximum nesting depth exceeded");
31383126 return new $root.jspb.test.OuterMessage();
31393127 };
31403128
@@ -3778,12 +3766,6 @@ $root.jspb = (function() {
37783766 IndirectExtension.fromObject = function fromObject(object, long) {
37793767 if (object instanceof $root.jspb.test.IndirectExtension)
37803768 return object;
3781- if (!$util.isObject(object))
3782- throw TypeError(".jspb.test.IndirectExtension: object expected");
3783- if (long === undefined)
3784- long = 0;
3785- if (long > $util.recursionLimit)
3786- throw Error("maximum nesting depth exceeded");
37873769 return new $root.jspb.test.IndirectExtension();
37883770 };
37893771
@@ -7794,12 +7776,6 @@ $root.jspb = (function() {
77947776 TestReservedNamesExtension.fromObject = function fromObject(object, long) {
77957777 if (object instanceof $root.jspb.test.TestReservedNamesExtension)
77967778 return object;
7797- if (!$util.isObject(object))
7798- throw TypeError(".jspb.test.TestReservedNamesExtension: object expected");
7799- if (long === undefined)
7800- long = 0;
7801- if (long > $util.recursionLimit)
7802- throw Error("maximum nesting depth exceeded");
78037779 return new $root.jspb.test.TestReservedNamesExtension();
78047780 };
78057781
@@ -10039,12 +10015,6 @@ $root.jspb = (function() {
1003910015 Deeply.fromObject = function fromObject(object, long) {
1004010016 if (object instanceof $root.jspb.test.Deeply)
1004110017 return object;
10042- if (!$util.isObject(object))
10043- throw TypeError(".jspb.test.Deeply: object expected");
10044- if (long === undefined)
10045- long = 0;
10046- if (long > $util.recursionLimit)
10047- throw Error("maximum nesting depth exceeded");
1004810018 return new $root.jspb.test.Deeply();
1004910019 };
1005010020
@@ -10231,12 +10201,6 @@ $root.jspb = (function() {
1023110201 Nested.fromObject = function fromObject(object, long) {
1023210202 if (object instanceof $root.jspb.test.Deeply.Nested)
1023310203 return object;
10234- if (!$util.isObject(object))
10235- throw TypeError(".jspb.test.Deeply.Nested: object expected");
10236- if (long === undefined)
10237- long = 0;
10238- if (long > $util.recursionLimit)
10239- throw Error("maximum nesting depth exceeded");
1024010204 return new $root.jspb.test.Deeply.Nested();
1024110205 };
1024210206
@@ -21958,12 +21922,6 @@ $root.google = (function() {
2195821922 VisibilityFeature.fromObject = function fromObject(object, long) {
2195921923 if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
2196021924 return object;
21961- if (!$util.isObject(object))
21962- throw TypeError(".google.protobuf.FeatureSet.VisibilityFeature: object expected");
21963- if (long === undefined)
21964- long = 0;
21965- if (long > $util.recursionLimit)
21966- throw Error("maximum nesting depth exceeded");
2196721925 return new $root.google.protobuf.FeatureSet.VisibilityFeature();
2196821926 };
2196921927
0 commit comments