From 11bbd17c186546f163b810aa4e80e285e00e412f Mon Sep 17 00:00:00 2001 From: Ihor Chulinda Date: Thu, 1 Feb 2018 20:37:09 +0100 Subject: [PATCH] fix(vm): removing readonly contextifying in order to support e2e --- packages/baset-vm/dist/contextify.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/baset-vm/dist/contextify.js b/packages/baset-vm/dist/contextify.js index 242dcc92..10dd6036 100644 --- a/packages/baset-vm/dist/contextify.js +++ b/packages/baset-vm/dist/contextify.js @@ -458,7 +458,11 @@ const Contextify = { return global[name] = Contextify.value(value); }, readonly: function(value, mock) { - return Contextify.value(value, null, FROZEN_TRAPS, null, mock); + // return Contextify.value(value, null, FROZEN_TRAPS, null, mock); + // TODO: find a way to return this safe mechanism back + // or remove such stuff at all and use only mocking and controlling + // abilities of vm + return value; }, protected: function(value, mock) { return Contextify.value(value, null, null, {protected: true}, mock);