Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | get rid of some expected failures | Kent Hansen | 2009-07-09 | 1 | -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 work | Kent Hansen | 2009-07-09 | 2 | -12/+48 |
| | | | | | With commit 6985212c8909c89183b232ca28b96a2c8a2f1385, context->thisObject() now returns the right thing. | ||||
* | mark a few expected failures | Kent Hansen | 2009-07-09 | 1 | -0/+3 |
| | |||||
* | create a default-constructed object when calling native constructors | Kent Hansen | 2009-07-09 | 1 | -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 functions | Kent Hansen | 2009-07-09 | 3 | -1/+29 |
| | | | | There's an off-by-one issue that we just work around for now. | ||||
* | remove two expected failures | Kent Hansen | 2009-07-09 | 1 | -2/+0 |
| | | | | They now work. | ||||
* | implement attributes for arguments.{callee,length} | Kent Hansen | 2009-07-09 | 2 | -0/+11 |
| | | | | Should be DontEnum, as per ECMA-262. | ||||
* | create a new frame when executing native getter/setter functions | Kent Hansen | 2009-07-09 | 2 | -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 can | Kent Hansen | 2009-07-09 | 3 | -48/+48 |
| | |||||
* | more tests for QScriptValue::call() overload that takes an array | Kent Hansen | 2009-07-09 | 1 | -0/+22 |
| | |||||
* | support callees that are not function objects | Kent Hansen | 2009-07-09 | 2 | -5/+5 |
| | | | | E.g. QScriptClass-based objects. | ||||
* | store frame's callee as a normal JSObject | Kent Hansen | 2009-07-09 | 4 | -22/+21 |
| | | | | | It's possible for any JSObject to be a callee; all it needs to do is implement getCallData(). | ||||
* | rewrite most of QScriptContext handling | Kent Hansen | 2009-07-08 | 11 | -148/+360 |
| | | | | Do it The right way(TM), by lazily wrapping JSC::ExecState objects. | ||||
* | try to get arguments object to work for host call frames | Kent Hansen | 2009-07-08 | 1 | -11/+20 |
| | |||||
* | make JSC::CallFrame::callee() an InternalFunction | Kent Hansen | 2009-07-08 | 4 | -16/+16 |
| | | | | | This makes it possible to obtain the callee for native (host) functions as well. | ||||
* | Autotest engineDetected check status of unbind | Jedrzej Nowacki | 2009-07-08 | 1 | -0/+4 |
| | | | | QScriptValues added. | ||||
* | Fix engineDelete autotest. | Jedrzej Nowacki | 2009-07-08 | 5 | -5/+111 |
| | |||||
* | work on QScriptEngine::uncaughtException() | Kent Hansen | 2009-07-07 | 6 | -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 prototype | Kent Hansen | 2009-07-07 | 1 | -0/+2 |
| | |||||
* | start to implement QScriptEngine::importExtension() | Kent Hansen | 2009-07-06 | 2 | -6/+200 |
| | |||||
* | implement QScriptEngine::availableExtensions() | Kent Hansen | 2009-07-06 | 2 | -3/+75 |
| | |||||
* | fix QScriptValue::construct() when argument is not array-like | Kent Hansen | 2009-07-06 | 3 | -4/+16 |
| | |||||
* | make QScriptClass::HasInstance extension work | Kent Hansen | 2009-07-06 | 3 | -7/+55 |
| | |||||
* | start implementing QScriptClass extensions | Kent Hansen | 2009-07-03 | 3 | -1/+51 |
| | | | | Callable seems to work, HasInstance not quite there yet. | ||||
* | make more tests pass | Kent Hansen | 2009-07-03 | 3 | -9/+14 |
| | |||||
* | kill a few QEXPECT_FAILs | Kent Hansen | 2009-07-03 | 1 | -3/+0 |
| | | | | It's been fixed (commit c23be3111ec279b4e19ca9c37a0d9eddb756f402) | ||||
* | Attributes and deletion of String object properties | Kent Hansen | 2009-07-03 | 4 | -0/+29 |
| | | | | As per ECMA-262. | ||||
* | make more tests pass | Kent Hansen | 2009-07-03 | 2 | -10/+22 |
| | | | | Implement delete operator for Qt properties. | ||||
* | add some expected failures so the test completes | Kent Hansen | 2009-07-03 | 1 | -2/+13 |
| | |||||
* | implement a fair amount of the QScriptClass functionality | Kent Hansen | 2009-07-02 | 5 | -15/+212 |
| | | | | | Enumeration is missing, as is the ability to change the class of an object after it has been created. | ||||
* | implement string-->enum conversion | Kent Hansen | 2009-07-02 | 2 | -3/+9 |
| | |||||
* | first stab at implementing Qt property getter/setters | Kent Hansen | 2009-07-02 | 4 | -24/+230 |
| | | | | Not fully working yet, so disabled for now | ||||
* | skip some of the V8 tests so autotest doesn't hang | Kent Hansen | 2009-07-02 | 1 | -0/+4 |
| | | | | | With the JSC backend, these tests hang (in debug and non-JIT mode, at least). | ||||
* | remove a bunch of expected failures | Kent Hansen | 2009-07-02 | 1 | -94/+0 |
| | | | | With JSC backend these tests work (better compatibility, yay). | ||||
* | implement caching of slot wrapper functions | Kent Hansen | 2009-07-02 | 3 | -4/+42 |
| | |||||
* | make the qtscript calculator and tetrix examples run | Kent Hansen | 2009-07-02 | 2 | -4/+4 |
| | | | | Disable the debugger for now, since it's not implemented. | ||||
* | implement marking of QObject connection | Kent Hansen | 2009-07-02 | 1 | -8/+9 |
| | |||||
* | implement QScriptValue::QObjectMember property flag | Kent Hansen | 2009-07-02 | 4 | -8/+12 |
| | |||||
* | use the JSC::Getter and JSC::Setter flags | Kent Hansen | 2009-07-02 | 1 | -4/+2 |
| | |||||
* | create a new QScriptContext when calling a Qt method | Kent Hansen | 2009-07-02 | 1 | -2/+14 |
| | | | | Makes the args, thisObject etc. available if QScriptable is used. | ||||
* | implement QObject property flags | Kent Hansen | 2009-07-02 | 2 | -2/+97 |
| | |||||
* | add placeholder implementations of findChild() and findChildren() | Kent Hansen | 2009-07-01 | 1 | -1/+25 |
| | |||||
* | make the calculator example use only standard JS | Kent Hansen | 2009-06-30 | 1 | -45/+62 |
| | | | | __qt_sender__ is evil. Gah. | ||||
* | don't crash if isFunction() is called with invalid JS value | Kent Hansen | 2009-06-30 | 1 | -1/+1 |
| | |||||
* | implement setting of default prototype in newQObject() | Kent Hansen | 2009-06-30 | 2 | -14/+51 |
| | |||||
* | implement name-based connection, make more tests work | Kent Hansen | 2009-06-30 | 2 | -19/+41 |
| | |||||
* | port recent changes from qt/master | Kent Hansen | 2009-06-30 | 3 | -7/+23 |
| | | | | Makes variant conversion work for signal handlers. | ||||
* | make part of test not assert | Kent Hansen | 2009-06-29 | 2 | -2/+4 |
| | |||||
* | dummy QScriptContextInfo implementation | Kent Hansen | 2009-06-29 | 1 | -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 now | Kent Hansen | 2009-06-29 | 1 | -0/+2 |
| | | | | Eases debugging. |