web #
fn atob #
fn atob(ctx &Context) Value
Atob. this is return js_function value.
fn atob_api #
fn atob_api(ctx &Context)
Add atob to globals.
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.atob_api(ctx)
}
fn blob_api #
fn blob_api(ctx &Context)
Add Blob API to globals.
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.blob_api(ctx)
}
fn btoa #
fn btoa(ctx &Context) Value
Btoa. this is return js_function value.
fn btoa_api #
fn btoa_api(ctx &Context)
Add btoa to globals.
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.btoa_api(ctx)
}
fn console_api #
fn console_api(ctx &Context)
Add console to globals.
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.console_api(ctx)
}
fn crypto_api #
fn crypto_api(ctx &Context)
Add Crypto API to globals.
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.crypto_api(ctx)
}
fn delete_bootstrap #
fn delete_bootstrap(ctx &Context) bool
delete core __bootstrap
from global
fn encoding_api #
fn encoding_api(ctx &Context)
Add encoding API to globals (TextEncoder
, TextDecoder
).
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.encoding_api(ctx)
}
fn fetch_api #
fn fetch_api(ctx &Context)
Add Fetch API to globals.
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.fetch_api(ctx)
}
fn formdata_api #
fn formdata_api(ctx &Context)
Add FormData API to globals.
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.formdata_api(ctx)
}
fn inject #
fn inject(ctx &Context)
Inject All Web-API features.
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.inject(ctx)
}
fn performance_api #
fn performance_api(ctx &Context)
Add Performance API to globals.
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.performance_api(ctx)
}
fn stream_api #
fn stream_api(ctx &Context)
Add Stream API to globals (ReadableStream
, TransformStream
, WritableStream
).
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.stream_api(ctx)
}
fn timer_api #
fn timer_api(ctx &Context)
Add timer API to globals (setTimeout
, setInterval
, clearTimeout
, clearInterval
).
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.timer_api(ctx)
}
fn url_api #
fn url_api(ctx &Context)
Add URL API to globals (URL
, URLSearchParams
).
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.url_api(ctx)
}
fn window_api #
fn window_api(ctx &Context)
Add Window API to globals. same as globalThis.
Example
import herudi.vjs
import herudi.vjs.web
fn main() {
rt := vjs.new_runtime()
ctx := rt.new_context()
web.window_api(ctx)
}