b2EdgeShape in Cocos2d-x html5

Hi,
I am defining a simple ground for my test,
but when i say:
var groundShape = new b2EdgeShape();

I see in the console window:
TypeError: b2EdgeShape is not a constructor

Can I use EdgeShape in html5 version of Box2D Cocos?
If not, is there any thing equivalent?
Thank you !

Solved.
b2PolygonShape.SetAsEdge(b2Vec2, b2Vec2)