aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/functionAssignment.js
blob: 14daa7629f1971895fee820f789c32e9a97d4044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function bindProperty()
{
    a = (function(){ return aNumber * 10 })
}


function TestObject() { }
TestObject.prototype.aNumber = 928349
TestObject.prototype.bindFunction = function() {
    return this.aNumber * 10        // this should not use the TestObject's aNumber
}
var testObj = new TestObject()

function bindPropertyWithThis()
{
    a = testObj.bindFunction
}