diff --git a/packages/bruno-js/src/sandbox/quickjs/shims/bruno-request.js b/packages/bruno-js/src/sandbox/quickjs/shims/bruno-request.js index 9be27fae7..1edfaaadb 100644 --- a/packages/bruno-js/src/sandbox/quickjs/shims/bruno-request.js +++ b/packages/bruno-js/src/sandbox/quickjs/shims/bruno-request.js @@ -105,6 +105,12 @@ const addBrunoRequestShimToContext = (vm, req) => { vm.setProp(reqObject, 'setTimeout', setTimeout); setTimeout.dispose(); + let disableParsingResponseJson = vm.newFunction('disableParsingResponseJson', function () { + req.disableParsingResponseJson(); + }); + vm.setProp(reqObject, 'disableParsingResponseJson', disableParsingResponseJson); + disableParsingResponseJson.dispose(); + vm.setProp(vm.global, 'req', reqObject); reqObject.dispose(); };