Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function restore(json) {
const { brk, threads, sync, stack } = S.read(json);
context.brk = brk;
context.error = false;
context.threads = threads;
context.sync = sync;
context.stack = stack;
}
export function restore(json: S.JSONObject) {
({
top: context.top,
syncStack: context.syncStack,
queue: context.queue,
debug: context.debug,
brk: context.brk,
extra
} = S.read(json));
}