Add context code support to exercises (optional)

Partial #52, fixes #49, fixes #46
This commit is contained in:
Aaron O'Mullan
2014-04-08 16:58:04 -07:00
parent 392573a990
commit 9265b0185a
6 changed files with 48 additions and 15 deletions
+3 -2
View File
@@ -2,6 +2,7 @@ define(function() {
return {
id: "javascript",
assertCode: "function assert(condition, message) { \nif (!condition) { \n throw message || \"Assertion failed\"; \n } \n }\n",
REPL: JSREPL
REPL: JSREPL,
sep: ";\n",
};
});
});