$Try_3_Catch = function (e) {
        try {
          // error thrown if style has been removed from main thread
          return $return(tile_data);
        } catch ($boundEx) {
          return $error($boundEx);
        }
      }
TODO: could probably combine and generalize this with similar method in ShaderProgram
(list of define objects that inherit from each other)