Created
March 3, 2011 08:09
-
-
Save dominictarr/852491 to your computer and use it in GitHub Desktop.
minimal TypeErrors when it doesn't know what to do with a field.
This file contains 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
// run with the following command: node test-node.js | |
var minimal = require("../minimal-node"); | |
var $m = minimal.template("<html><head><title></title><body><p id='content'></p></body></html>"); | |
$m({ | |
title: "some title", | |
unknown: "not in template" | |
}); | |
console.log($m.html()); | |
/* | |
node.js:116 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
TypeError: Object [ undefined ] has no method 'querySelector' | |
at /home/dominic/forks/minimal/minimal.js:19:62 | |
at /home/dominic/forks/minimal/minimal.js:65:125 | |
at /home/dominic/forks/minimal/minimal.js:33:22 | |
at /home/dominic/forks/minimal/minimal.js:15:93 | |
at /home/dominic/forks/minimal/minimal.js:32:4 | |
at /home/dominic/forks/minimal/minimal.js:70:30 | |
at /home/dominic/forks/minimal/minimal.js:15:93 | |
at /home/dominic/forks/minimal/minimal.js:68:4 | |
at Object.<anonymous> (/home/dominic/forks/minimal/test/test-node.js:5:1) | |
at Module._compile (module.js:374:26) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment