Skip to content

Commit

Permalink
fix(vm): removing readonly contextifying in order to support e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Igmat committed Feb 1, 2018
1 parent 15a261e commit 11bbd17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/baset-vm/dist/contextify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 11bbd17

Please sign in to comment.