// assuming b is a local
// rewrite
function(a) { return a + b; }
// to
Object.defineProperty(function(a) { return a + b; }, "$scope", {value: function() { return {"b": b}; }})
Last active
September 6, 2017 08:17
-
-
Save cgrand/8fb659c8c7e7d436410633fe98418aa4 to your computer and use it in GitHub Desktop.
Introspectable js scope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment