amilajack / amilajack/compat-db

Support for different JS contexts

オープン
#39 コメント 0 件 リアクション 0 件 担当者 1 名 @amilajack が担当を希望しています GitHub で見る
主要言語
JavaScript
スター
64
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

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
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。