diff options
author | alon@honor <none@none> | 2010-09-06 15:25:17 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-06 15:25:17 -0700 |
commit | e5847048c36de42ca50284f956f5747b67de09c5 (patch) | |
tree | 88f885ee9ecd0cc652bddd301c10eea96dfbbafd /src/snippets.js | |
parent | 3c5c095e6542f6c9f56fbdce7a1bfa698a78fe34 (diff) |
fixes for null vs 0, and support for assert +test
Diffstat (limited to 'src/snippets.js')
-rw-r--r-- | src/snippets.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/snippets.js b/src/snippets.js index 83cc26e6..5d84f1a0 100644 --- a/src/snippets.js +++ b/src/snippets.js @@ -56,6 +56,10 @@ var Snippets = { } } }, + + __assert_fail: function(condition, file, line) { + throw 'Assertion failed: ' + Pointer_stringify(condition);//JSON.stringify(arguments)//condition; + }, }; // Aliases |