mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 15:33:11 +01:00
chore: disableParsingResponseJson shim fn in safe mode (#3110)
This commit is contained in:
parent
4f7cefe41d
commit
3cb3f8094f
@ -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();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user