ReferenceError: Can't find variable: WebGLRenderingContext

Cocos2dx-html5 running in safari is giving me this error, Im compiling the project in cocos2d-x 3.13
it is working fine in all other browsers.
Need help with this