Properly rethrow any exceptions from parsing JSON in Body mixin's Json()

This commit is contained in:
Yusuf Simonson 2018-03-27 10:20:59 +08:00
parent 3ce3f39383
commit d8e5b558f4
2 changed files with 8 additions and 18 deletions

View file

@ -6,9 +6,6 @@
[Consume String request's body as formData]
expected: FAIL
[Trying to consume bad JSON text as JSON: 'undefined']
expected: FAIL
[Consume Int8Array request's body as text]
expected: FAIL
@ -45,15 +42,6 @@
[Consume FormData request's body as FormData]
expected: FAIL
[Trying to consume bad JSON text as JSON: 'undefined']
expected: FAIL
[Trying to consume bad JSON text as JSON: '{']
expected: FAIL
[Trying to consume bad JSON text as JSON: 'a']
expected: FAIL
[Consume ArrayBuffer request's body as blob]
expected: FAIL
@ -81,6 +69,3 @@
[Consume Float32Array request's body as text]
expected: FAIL
[Trying to consume bad JSON text as JSON: '[']
expected: FAIL