CCDictionary pointer object in function paremeters is null?

cocos2d-x 2.2.1
create project using language javascprite,when I debug code:
//c++ code
void c::load()
{
CCDictionary *pObject = CCDictionary::create();
pObject~~>setObject, “key”);
this~~>test(pObject);
}

void c::test(CCDictionary *pDict)
{
pDict is no any key WHY???
}