console-feed icon indicating copy to clipboard operation
console-feed copied to clipboard

Changing object's property values during console log causes a bug

Open halitogunc opened this issue 5 years ago • 3 comments

Expected Behaviour

let x = {
  a: 1
};

console.log(x.a); //1
console.log(x); //{a: 1}

x.a = 2;
console.log(x.a); //2
console.log(x); //{a: 2}

Chrome and Mozilla show additional info to warn users about the new evaluated value, but Safari does not.

image

Current Behaviour

image

halitogunc avatar May 29 '19 13:05 halitogunc

See https://github.com/samdenty/console-feed/issues/19#issuecomment-483432656

samdenty avatar May 29 '19 13:05 samdenty

Hi, thanks for the great library! I was thinking about removing setTimeout function on the whole until I looked at your comment.

halitogunc avatar May 29 '19 14:05 halitogunc

@samdenty Any idea if 2.8.8 should fix this (and https://github.com/codesandbox/codesandbox-client/issues/1978) ? I opened this CodeSandbox PR , but I still get the same behavior.

lbogdan avatar Jun 20 '19 17:06 lbogdan