Skip to content

Instantly share code, notes, and snippets.

@sebmarkbage
Created February 12, 2012 20:20
Show Gist options
  • Select an option

  • Save sebmarkbage/1810701 to your computer and use it in GitHub Desktop.

Select an option

Save sebmarkbage/1810701 to your computer and use it in GitHub Desktop.
Module
setCurrentGlobalState('foo');
throw E;
export var x = readCurrentGlobalState();
export B;
module A from "A.js";
module B from "B.js";
console.log(B.x);
setCurrentGlobalState('bar');
module B from "program.js";
console.log(B.x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment