3 ms·
I feel like there's no sane way for the developer to understand that he's runnning in a different evironment suppose: var i = 0; var localCaller = remot
by _lce0 12y ago
I feel like there's no sane way for the developer to understand that he's runnning in a different evironment
suppose:
var i = 0;
var localCaller = remoteBundler(function() {
// this will be run at server-side
i += 1; // oops .. "i" does not exists on server
});
localCaller();
and yes, this is could be easily spotted, but I've seen so many guys really stuck with so naive errors (eg mongodb's reduce function)
- icebraining 12y agoCan't the library detect the closure? I'm pretty sure I could do this in Python.