v8go-polyfills:将polyfills添加到rogchapv8go

时间:2024-04-29 10:19:11
【文件属性】:

文件名称:v8go-polyfills:将polyfills添加到rogchapv8go

文件大小:77KB

文件格式:ZIP

更新时间:2024-04-29 10:19:11

javascript polyfill v8 v8go Go

Polyfills 安装 go get -u go.kuoruan.net/v8go-polyfills 用法 获取polyfill package main import ( "errors" "fmt" "time" "go.kuoruan.net/v8go-polyfills/fetch" "rogchap.com/v8go" ) func main () { iso , _ := v8go . NewIsolate () global , _ := v8go . NewObjectTemplate ( iso ) if err := fetch . InjectTo ( iso , global ); err != nil { panic ( err ) } ctx , _ := v8go . NewContext ( iso , global ) va


【文件预览】:
v8go-polyfills-master
----example()
--------fetch()
----timers()
--------internal()
--------timer.go(4KB)
--------inject.go(2KB)
----package.json(524B)
----internal()
--------version.txt(5B)
--------version.go(1KB)
----write-version-plugin.js(1KB)
----url()
--------url.go(1KB)
--------js()
--------url_test.go(2KB)
--------bundle.js(33KB)
--------inject.go(1KB)
----fetch()
--------fetcher.go(10KB)
--------internal()
--------fetcher_test.go(3KB)
--------options.go(2KB)
--------inject.go(2KB)
--------inject_test.go(2KB)
----base64()
--------base64_test.go(3KB)
--------base64.go(3KB)
--------inject.go(2KB)
----feature-test.js(209B)
----LICENSE(1KB)
----.eslintrc.js(265B)
----console()
--------console_test.go(1KB)
--------options.go(1KB)
--------console.go(2KB)
--------inject.go(2KB)
----.gitignore(41B)
----webpack.config.js(557B)
----go.sum(422B)
----README.md(945B)
----yarn.lock(66KB)
----.eslintignore(23B)
----.editorconfig(155B)
----inject.go(2KB)
----go.mod(109B)

网友评论