interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Restarting kernel doesn't reset JavaScript state

Open jonsequitur opened this issue 3 years ago • 0 comments

Repro steps:

  1. Set a variable in a JavaScript cell:
myVariable = 123;
  1. Restart the kernel

  2. In another JavaScript cell, run this:

console.log(myVariable);

Expected:

Error: ReferenceError: myVariable is not defined

Actual:

123

jonsequitur avatar Jun 22 '21 03:06 jonsequitur