The prototype of error constructors is the function prototype

Change-Id: I9365d04b199f4cc7b75f347886b68ccc073564fb
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
This commit is contained in:
Lars Knoll 2013-01-14 14:02:03 +01:00 committed by Simon Hausmann
parent 502d9b4902
commit 960e86a5c7
1 changed files with 6 additions and 6 deletions

View File

@ -153,12 +153,12 @@ ExecutionEngine::ExecutionEngine(EvalISelFactory *factory)
dateCtor.objectValue()->prototype = functionPrototype;
regExpCtor.objectValue()->prototype = functionPrototype;
errorCtor.objectValue()->prototype = functionPrototype;
evalErrorCtor.objectValue()->prototype = errorPrototype;
rangeErrorCtor.objectValue()->prototype = errorPrototype;
referenceErrorCtor.objectValue()->prototype = errorPrototype;
syntaxErrorCtor.objectValue()->prototype = errorPrototype;
typeErrorCtor.objectValue()->prototype = errorPrototype;
uRIErrorCtor.objectValue()->prototype = errorPrototype;
evalErrorCtor.objectValue()->prototype = functionPrototype;
rangeErrorCtor.objectValue()->prototype = functionPrototype;
referenceErrorCtor.objectValue()->prototype = functionPrototype;
syntaxErrorCtor.objectValue()->prototype = functionPrototype;
typeErrorCtor.objectValue()->prototype = functionPrototype;
uRIErrorCtor.objectValue()->prototype = functionPrototype;
objectPrototype->init(rootContext, objectCtor);
stringPrototype->init(rootContext, stringCtor);