Commit Graph

686 Commits

Author SHA1 Message Date
Matt Long
3cf522d2df add bindings for unshift 2018-06-20 18:07:30 -04:00
Matt Long
68acbeab25 add binding for shift 2018-06-20 18:03:26 -04:00
Matt Long
d705cd8bbf add binding for reverse 2018-06-20 18:00:58 -04:00
Matt Long
4611d7bdba add binding for push 2018-06-20 17:58:15 -04:00
Matt Long
73081180cd add binding for pop 2018-06-20 17:55:25 -04:00
Matt Long
2f6f734216 add binding for copyWithin 2018-06-20 17:51:02 -04:00
Matt Long
d155136f0e add binding for fill 2018-06-20 17:49:34 -04:00
Matt Long
e8bb0c2f98 add binding for slice 2018-06-20 17:46:10 -04:00
Matt Long
0b80888c0d add binding for join 2018-06-20 17:38:47 -04:00
Matt Long
667733e929 add binding for lastIndexOf 2018-06-20 17:36:35 -04:00
Matt Long
4a96ba3c72 add binding for indexOf 2018-06-20 17:23:38 -04:00
Nick Fitzgerald
289f2a88cf
Merge pull request #278 from jonathan-s/to_string
Js binding for to_string
2018-06-20 13:26:52 -07:00
Jonathan Sundqvist
d89c7958eb Js binding for to_string 2018-06-20 21:55:41 +02:00
Nick Fitzgerald
8cd030159b
Merge pull request #277 from jonathan-s/missing-docs
Add missing docs to make cargo test work
2018-06-20 11:05:53 -07:00
Jonathan Sundqvist
7275b6f751 Add missing docs to make cargo test work 2018-06-20 19:28:13 +02:00
Nick Fitzgerald
5eda5504e9
Merge pull request #273 from FreeMasen/validate-ptr
Validate ptr
2018-06-19 16:45:31 -07:00
Nick Fitzgerald
0bfa058385 ci: Use the correct local-dir for the built book in deploy 2018-06-19 14:18:35 -07:00
Nick Fitzgerald
ee4fb86400 ci: Don't run before_deploy unless DEPLOY=1
The before_deploy commands are for when we are building release tarballs, and we
don't want to do that for when we are deploying the guide to gh-pages.
2018-06-19 13:47:44 -07:00
Nick Fitzgerald
ce5dd5931d ci: Try and fix book deployment in CI 2018-06-19 13:41:19 -07:00
Nick Fitzgerald
a1ea1d297e
Merge pull request #276 from fitzgen/team-and-book
Add a guide, change log, enumerate team members, release template, etc
2018-06-19 12:53:55 -07:00
Nick Fitzgerald
a4d4435a47 Add a template for release announcements 2018-06-19 12:05:52 -07:00
Nick Fitzgerald
cc2de8232e Add a change log 2018-06-19 12:05:52 -07:00
Nick Fitzgerald
4d3f1c63a2 Point to the guide's contributing section instead of CONTRIBUTING.md 2018-06-19 12:05:52 -07:00
Nick Fitzgerald
4cf301985c guide: Add a contributing section and move DESIGN.md under it
Also adds a team section where we enumerate the folks on the `wasm-bindgen` team
and who can review pull requests
2018-06-19 12:05:52 -07:00
Nick Fitzgerald
feec53a73b guide: Build and deploy the guide in Travis CI 2018-06-19 12:05:52 -07:00
Nick Fitzgerald
1d9a7dfdee Make the README a landing page
All the details are moved into the guide, where they can be properly organized
and have a table of contents.
2018-06-19 12:05:52 -07:00
Nick Fitzgerald
7c9973d9d1 guide: Add the wasm-bindgen guide
Essentially split up the monolithic README.md into an `mdbook`.
2018-06-19 12:05:27 -07:00
Nick Fitzgerald
224d20337f
Merge pull request #274 from fitzgen/js-sys
Expose objects and functions from the JavaScript global scope
2018-06-19 10:42:04 -07:00
Nick Fitzgerald
7b0e779ffd test: remove unnecessary test.ts files
The testing infrastructure will add exactly this default `test.ts` when it isn't
explicitly specified.
2018-06-19 10:17:42 -07:00
Nick Fitzgerald
a201cafdea test: Move Object-related js_globals tests to submodule file 2018-06-19 10:15:09 -07:00
Nick Fitzgerald
d9cac3bd90 Don't document descriptor functions
They aren't part of any public API, and are just an implementation detail of
wasm-bindgen.
2018-06-18 16:44:19 -07:00
Nick Fitzgerald
161fce9d50 Expose objects and functions from the JavaScript global scope
These are bindings to JavaScript's standard, built-in objects and their methods
and properties.

This does *not* include any Web, Node, or any other JS environment APIs. Only
the things that are guaranteed to exist in the global scope by the ECMAScript
standard.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
2018-06-18 16:41:01 -07:00
Nick Fitzgerald
132103eb06 cli-support: Ignore missing descriptor functions
This can happen when a nested dependency crate exports things but the root crate
doesn't use them. In these cases, it is fine to ignore the missing descriptor,
because the thing it describes was removed as dead code.
2018-06-18 16:41:01 -07:00
Nick Fitzgerald
e4dcb8f85e Add associated constants for common JS values 2018-06-18 16:41:01 -07:00
Nick Fitzgerald
7d1f26d7b0
Merge pull request #272 from ohanar/webidl_static
webidl: add support for static methods and attributes
2018-06-18 13:44:24 -07:00
Robert Masen
e9ea2dabc1 add Validate ptr test 2018-06-18 15:34:48 -05:00
R. Andrew Ohana
d123bedc20 change some asserts to assert_(eq|ne)s 2018-06-18 13:10:07 -07:00
Nick Fitzgerald
e639a3f08f
Update wasm-pack repository URL 2018-06-18 12:44:46 -07:00
Robert Masen
749ac6502f add ptr validation 2018-06-17 20:13:56 -05:00
R. Andrew Ohana
0938858aa8 webidl: add support for static attributes 2018-06-15 12:22:14 -07:00
R. Andrew Ohana
fe5cde8636 webidl: add support for static methods 2018-06-15 12:09:42 -07:00
Nick Fitzgerald
639ccd53ce
Merge pull request #269 from ohanar/webidl_constructor
webidl: add support for (named) constructors
2018-06-15 11:35:29 -07:00
Nick Fitzgerald
fe42656120
Merge pull request #268 from FreeMasen/format
Format
2018-06-15 11:23:47 -07:00
Robert Masen
2d7e7cd73e Update js formatting 2018-06-15 12:55:37 -05:00
Robert Masen
19d6cf1488 Copy doc comments from Rust to JS (#265)
* backend comments complete

* better matching

* gen comments

* Add example

* Move test bindings gen to own fn

* move build step into build fn

* add fn to read js, refactor gen_bindings/test to allow for this

* Add comments test

* Update readmes

* add comments to travis

* fix broken tests

* +x on build.sh

* fix wbg cmd in build.sh

* Address fitzgen's comments
2018-06-15 09:20:56 -07:00
R. Andrew Ohana
cbec42e86c webidl: add support for named constructors 2018-06-14 16:20:20 -07:00
R. Andrew Ohana
c65cb51fba webidl: add support for constructors 2018-06-14 16:15:25 -07:00
Nick Fitzgerald
3ad9bac599
Merge pull request #267 from nikgraf/patch-1
clarify js part in the readme
2018-06-14 14:52:42 -07:00
R. Andrew Ohana
400015a061 webidl: refactor method/getter/getter generation 2018-06-14 14:39:04 -07:00
Nik Graf
005630929c
clarify js part in the readme 2018-06-13 19:13:02 +02:00