Last active
May 16, 2018 23:23
-
-
Save bmeck/c9ab50b3589b9991cd08173877fcc2f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
async resolve() { | |
const dep = vm.Module('export let a = 0; ({set a(v) {a = v;} get a() {return a;}})'); | |
dep.onEvaluated((ns, reflect) => { | |
setInterval(() => reflect.a++, 1000); | |
}); | |
return dep; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment