Skip to content

Instantly share code, notes, and snippets.

View the-learning-man's full-sized avatar

the-learning-man

View GitHub Profile
can-compile failing with error console.log("VM EXCEPTION:", ex.stack);
decorated the function doc-helpers.js/onEnd with logging filenames.
vm.runInContext cannot parse the HTTP 301 permenantly moved message.
function onEnd () {
try {
console.log("start doc-helper/onEnd ", url, code)
vm.runInContext(code, window, url);
console.log("end doc-helper/onEnd ", url)