mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
throw a regular Error() exception in Runtime.js because objj_exception doesn't exist anymore
This commit is contained in:
committed by
Ross Boucher
parent
8dd61155bf
commit
fc8525e4d8
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user