summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* get rid of some expected failuresKent Hansen2009-07-091-36/+12
| | | | | | | | | | The JSC parser doesn't understand function expressions as statements; you have to surround the expression by parentheses. That's in accordance with the ECMA spec, but most implementations (including the old qtscript backend) don't require the parentheses. However, since it's easier to change the tests than the JSC parser, let's do that for now to get rid of some noise in the test output.
* make native object constructors workKent Hansen2009-07-092-12/+48
| | | | | With commit 6985212c8909c89183b232ca28b96a2c8a2f1385, context->thisObject() now returns the right thing.
* mark a few expected failuresKent Hansen2009-07-091-0/+3
|
* create a default-constructed object when calling native constructorsKent Hansen2009-07-091-0/+11
| | | | | | | | | | | | It's up to the implementation of the constructor to decide whether it wants to initialize the default-constructed object, or create and return a new one; just like for JS constructors. We need this functionality in QtScript so that QScriptContext::thisObject() will return the right thing. The built-in constructors (RegExp etc.) should be modified to initialize the default-constructed object instead of always creating a new object (only when RegExp is called as a function should it create a new object).
* make arguments object work for native functionsKent Hansen2009-07-093-1/+29
| | | | There's an off-by-one issue that we just work around for now.
* remove two expected failuresKent Hansen2009-07-091-2/+0
| | | | They now work.
* implement attributes for arguments.{callee,length}Kent Hansen2009-07-092-0/+11
| | | | Should be DontEnum, as per ECMA-262.
* create a new frame when executing native getter/setter functionsKent Hansen2009-07-092-4/+38
| | | | | | Frames are created when calling JS functions, so they should be when calling native functions as well. This makes QScriptContext behave correctly in these cases (see getSetProperty autotest).
* use currentFrame instead of globalExec whenever we canKent Hansen2009-07-093-48/+48
|
* more tests for QScriptValue::call() overload that takes an arrayKent Hansen2009-07-091-0/+22
|
* support callees that are not function objectsKent Hansen2009-07-092-5/+5
| | | | E.g. QScriptClass-based objects.
* store frame's callee as a normal JSObjectKent Hansen2009-07-094-22/+21
| | | | | It's possible for any JSObject to be a callee; all it needs to do is implement getCallData().
* rewrite most of QScriptContext handlingKent Hansen2009-07-0811-148/+360
| | | | Do it The right way(TM), by lazily wrapping JSC::ExecState objects.
* try to get arguments object to work for host call framesKent Hansen2009-07-081-11/+20
|
* make JSC::CallFrame::callee() an InternalFunctionKent Hansen2009-07-084-16/+16
| | | | | This makes it possible to obtain the callee for native (host) functions as well.
* Autotest engineDetected check status of unbindJedrzej Nowacki2009-07-081-0/+4
| | | | QScriptValues added.
* Fix engineDelete autotest.Jedrzej Nowacki2009-07-085-5/+111
|
* work on QScriptEngine::uncaughtException()Kent Hansen2009-07-076-9/+33
| | | | | | It's possible that JSC evaluate() returns a completion of type Throw without hadException() being true, so we need to store the exception value explicitly.
* mark the QScriptClass object prototypeKent Hansen2009-07-071-0/+2
|
* start to implement QScriptEngine::importExtension()Kent Hansen2009-07-062-6/+200
|
* implement QScriptEngine::availableExtensions()Kent Hansen2009-07-062-3/+75
|
* fix QScriptValue::construct() when argument is not array-likeKent Hansen2009-07-063-4/+16
|
* make QScriptClass::HasInstance extension workKent Hansen2009-07-063-7/+55
|
* start implementing QScriptClass extensionsKent Hansen2009-07-033-1/+51
| | | | Callable seems to work, HasInstance not quite there yet.
* make more tests passKent Hansen2009-07-033-9/+14
|
* kill a few QEXPECT_FAILsKent Hansen2009-07-031-3/+0
| | | | It's been fixed (commit c23be3111ec279b4e19ca9c37a0d9eddb756f402)
* Attributes and deletion of String object propertiesKent Hansen2009-07-034-0/+29
| | | | As per ECMA-262.
* make more tests passKent Hansen2009-07-032-10/+22
| | | | Implement delete operator for Qt properties.
* add some expected failures so the test completesKent Hansen2009-07-031-2/+13
|
* implement a fair amount of the QScriptClass functionalityKent Hansen2009-07-025-15/+212
| | | | | Enumeration is missing, as is the ability to change the class of an object after it has been created.
* implement string-->enum conversionKent Hansen2009-07-022-3/+9
|
* first stab at implementing Qt property getter/settersKent Hansen2009-07-024-24/+230
| | | | Not fully working yet, so disabled for now
* skip some of the V8 tests so autotest doesn't hangKent Hansen2009-07-021-0/+4
| | | | | With the JSC backend, these tests hang (in debug and non-JIT mode, at least).
* remove a bunch of expected failuresKent Hansen2009-07-021-94/+0
| | | | With JSC backend these tests work (better compatibility, yay).
* implement caching of slot wrapper functionsKent Hansen2009-07-023-4/+42
|
* make the qtscript calculator and tetrix examples runKent Hansen2009-07-022-4/+4
| | | | Disable the debugger for now, since it's not implemented.
* implement marking of QObject connectionKent Hansen2009-07-021-8/+9
|
* implement QScriptValue::QObjectMember property flagKent Hansen2009-07-024-8/+12
|
* use the JSC::Getter and JSC::Setter flagsKent Hansen2009-07-021-4/+2
|
* create a new QScriptContext when calling a Qt methodKent Hansen2009-07-021-2/+14
| | | | Makes the args, thisObject etc. available if QScriptable is used.
* implement QObject property flagsKent Hansen2009-07-022-2/+97
|
* add placeholder implementations of findChild() and findChildren()Kent Hansen2009-07-011-1/+25
|
* make the calculator example use only standard JSKent Hansen2009-06-301-45/+62
| | | | __qt_sender__ is evil. Gah.
* don't crash if isFunction() is called with invalid JS valueKent Hansen2009-06-301-1/+1
|
* implement setting of default prototype in newQObject()Kent Hansen2009-06-302-14/+51
|
* implement name-based connection, make more tests workKent Hansen2009-06-302-19/+41
|
* port recent changes from qt/masterKent Hansen2009-06-303-7/+23
| | | | Makes variant conversion work for signal handlers.
* make part of test not assertKent Hansen2009-06-292-2/+4
|
* dummy QScriptContextInfo implementationKent Hansen2009-06-291-25/+81
| | | | | It doesn't give useful information but at least apps that try to use it (e.g. the qscriptjstestsuite autotest) won't assert now.
* disable the JIT for nowKent Hansen2009-06-291-0/+2
| | | | Eases debugging.