throw a regular Error() exception in Runtime.js because objj_exception doesn't exist anymore

This commit is contained in:
Paul Baumgart
2010-05-15 12:19:00 -07:00
committed by Ross Boucher
parent 8dd61155bf
commit fc8525e4d8
+1 -1
View File
@@ -386,7 +386,7 @@ DISPLAY_NAME(objj_registerClassPair);
GLOBAL(class_createInstance) = function(/*Class*/ aClass)
{
if (!aClass)
objj_exception_throw(new objj_exception(OBJJNilClassException, "*** Attempting to create object with Nil class."));
throw new Error("*** Attempting to create object with Nil class.");
var object = new aClass.allocator();