The WebGLRenderingContext.stencilOp() method of the WebGL API sets both the front and back-facing stencil test actions.
WebGLRenderingContext.stencilOp()
external void stencilOp(GLenum fail, GLenum zfail, GLenum zpass);