Open takahirox opened 4 years ago
XRWebGLLayer doesn't expose context attribute in the spec
XRWebGLLayer
context
https://www.w3.org/TR/webxr/#xrwebgllayer-interface
but it does in the polyfill
https://github.com/immersive-web/webxr-polyfill/blob/master/src/api/XRWebGLLayer.js#L74
It seems XRWebGLLayer.context is accessed from some places in the polyfill so renaming to _context like _session rather than hiding it would be good?
XRWebGLLayer.context
_context
_session
XRWebGLLayer
doesn't exposecontext
attribute in the spechttps://www.w3.org/TR/webxr/#xrwebgllayer-interface
but it does in the polyfill
https://github.com/immersive-web/webxr-polyfill/blob/master/src/api/XRWebGLLayer.js#L74
It seems
XRWebGLLayer.context
is accessed from some places in the polyfill so renaming to_context
like_session
rather than hiding it would be good?