diff options
author | alon@honor <none@none> | 2010-10-24 11:38:08 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-24 11:38:08 -0700 |
commit | fa7440b389910fefe7b3ea713a21b8a6b44daa6f (patch) | |
tree | 995a000499b75bef6a72bc2d97d778cfc6abb373 /src/preamble.js | |
parent | 6cc0726f3cac4473eb0ac8bfadaf429a14d472c4 (diff) |
add nonvirtual part to polymorph test; fails in clang
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 690ddc3c..fae4c714 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -41,10 +41,13 @@ INDENT = ''; START_TIME = Date.now(); #endif +ABORT = false; + function assert(condition, text) { if (!condition) { var text = "Assertion failed: " + text; print(text + ':\n' + (new Error).stack); + ABORT = true; throw "Assertion: " + text; } } |