jitcraft/RootScopes.cpp
changeset 69 dfce0539a77d
parent 64 11c81eb30246
     1.1 --- a/jitcraft/RootScopes.cpp	Tue Jul 10 02:11:13 2012 -0700
     1.2 +++ b/jitcraft/RootScopes.cpp	Wed Jul 11 01:12:54 2012 -0700
     1.3 @@ -45,8 +45,11 @@
     1.4  
     1.5      Block *block = new Block(blocks_);
     1.6      if (!block) {
     1.7 -        // :TODO: We are not prepared for this...
     1.8 -        fprintf(stderr, "Could not allocate a local root scope.\n");
     1.9 +        // We are not prepared for this. We'll start dishing out NULL-valued
    1.10 +        // ScopedRoots, and the engine generally assumes infallbility. Rather
    1.11 +        // then NULL check all sorts of nodes on parse trees, or add boolean
    1.12 +        // setters, for now we just abort.
    1.13 +        fprintf(stderr, "Unrecoverable error: could not allocate a local root scope. Aborting!\n");
    1.14          abort();
    1.15          return false;
    1.16      }