Skip to content

Commit

Permalink
Don't manually destroy the context, it breaks for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed May 6, 2012
1 parent bc5ff76 commit b44bccd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.c
Expand Up @@ -170,8 +170,9 @@ int main(int argc, const char *argv[])
JS_EvaluateScript(cx, global, embedded_src_main_js, strlen(embedded_src_main_js), "main.js", 1, NULL);

/* Cleanup. */
JS_DestroyContext(cx);
JS_DestroyRuntime(rt);
JS_ShutDown();
// TODO: find out why this triggers a smjs assert to fail.
// JS_DestroyContext(cx);
// JS_DestroyRuntime(rt);
// JS_ShutDown();
return 0;
}

0 comments on commit b44bccd

Please sign in to comment.