globalThis:符合ECMAScript规范的`globalThis`的polyfillshim

时间:2021-05-12 12:33:29
【文件属性】:
文件名称:globalThis:符合ECMAScript规范的`globalThis`的polyfillshim
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-12 12:33:29
JavaScript 全球本 符合ECMAScript规范的globalThis / shim。 如果不可用,则调用其“ shim”方法来对globalThis进行shim。 该软件包实现了接口。 它在ES3支持的环境中工作,并符合。 最常见的用法: var globalThis = require ( 'globalthis' ) ( ) ; // returns native globalThis if compliant /* or */ var globalThis = require ( 'globalthis/polyfill' ) ( ) ; // returns native globalThis if compliant 例子 var assert = require ( 'assert' ) ; // the below function is not CSP-compliant,
【文件预览】:
globalThis-main
----.gitignore(632B)
----.eslintrc(198B)
----package.json(2KB)
----.nycrc(139B)
----.npmrc(55B)
----browserShim.js(88B)
----auto.js(36B)
----LICENSE(1KB)
----implementation.browser.js(254B)
----index.js(408B)
----CHANGELOG.md(8KB)
----.github()
--------workflows()
----README.md(2KB)
----implementation.js(40B)
----.eslintignore(15B)
----shim.js(722B)
----.npmignore(653B)
----polyfill.js(251B)
----test()
--------index.js(196B)
--------shimmed.js(905B)
--------native.js(767B)
--------implementation.js(213B)
--------tests.js(1KB)

网友评论