Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
5.12, 6.2.4
-
None
Description
function test_proxy() {
let base =
{ id: 'baseid', name: 'basename', type: 'basetype' } let handler = {
get: function(ao, prop)
}
let r = new Proxy(base, handler);
// these fields work fine except 'name' shown later...
console.info("xx", r.id);
console.info("xx", r.type);
// r.name is supposed to be 'basename', but got empty string always.
console.info("xx", r.name);
}
===== output =====
qml: xx baseid
qml: xx basetype
qml: xx