amilajack / amilajack/compat-db

Support for different JS contexts

Abierto
#39 0 comentarios 0 reacciones 1 asignado Reclamado por @amilajack Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
64
Forks
3
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Some tests can only be run in certain contexts. WebGL and Workers are examples of this. We currently do some primitive prototype lookups to check if an API is defined in the global context. For other contexts, we'll need to make some modifications:

example:
```js
// Try this in chrome, which has support for webgl:
WebGLRenderingContext.clearColor === undefined // true

// We need to do this instead:
const canvas = document.getElementById('glCanvas');
var webglContext = canvas.getContext('webgl')

webglContext.clearColor === undefined // false
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.