bool ModuleObject::noteFunctionDeclaration(ExclusiveContext* cx, HandleAtom name, HandleFunction fun) { FunctionDeclarationVector* funDecls = functionDeclarations(); if (!funDecls->emplaceBack(name, fun)) { ReportOutOfMemory(cx); return false; } return true; }
bool ModuleObject::noteFunctionDeclaration(ExclusiveContext* cx, HandleAtom name, HandleFunction fun) { FunctionDeclarationVector* funDecls = functionDeclarations(); return funDecls->emplaceBack(name, fun); }