Fixed objj command line importing.

This commit is contained in:
tlrobinson
2009-10-16 13:29:22 -07:00
parent f2e95f7e63
commit f925585475
+2 -2
View File
@@ -134,7 +134,7 @@ var objj_eval = exports.objj_eval = function(code)
}
// prepocesses Objective-J code into JavaScript, which will perform imports synchronously when eval'd
var objj_preprocess_sync = function(code, path)
window.objj_preprocess_sync = function(code, path)
{
var fragments = objj_preprocess(code, new objj_bundle(), new objj_file(), OBJJ_PREPROCESSOR_DEBUG_SYMBOLS)
@@ -153,7 +153,7 @@ var objj_preprocess_sync = function(code, path)
}
// synchronously perform an import
var objj_import_sync = function(pathOrPaths, isLocal)
window.objj_import_sync = function(pathOrPaths, isLocal)
{
var context = new objj_context();
context.pushFragment(fragment_create_file(pathOrPaths, new objj_bundle(), isLocal, NULL));