Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-06-26 19:21:35 +00:00
Code Issues Projects Releases Wiki Activity
Files
cba1e70077165f5bc11fd9fbb26a5291dc27b276
wasm-bindgen/crates/webidl-tests/global.js

9 lines
139 B
JavaScript
Raw Normal View History

Fix webidl-tests fallout
2018-09-17 14:51:25 -07:00
const map = {
global_no_args: () => 3,
global_with_args: (a, b) => a + b,
global_attribute: 'x',
};
global.get_global = () => map;
web-sys: Add support for `Global`-scope methods This commit adds further support for the `Global` attribute to not only emit structural accessors but also emit functions that don't take `&self`. All methods on a `[Global]` interface will not require `&self` and will call functions and/or access properties on the global scope. This should enable things like: Window::location() // returns `Location` Window::fetch(...) // invokes the `fetch` function Closes #659
2018-08-28 15:19:31 -07:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 127ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API