Commit Graph

652 Commits

Author SHA1 Message Date
robertdurst
a9ca64b689 Implement Array.length binding 2018-06-21 21:30:57 -07:00
Nick Fitzgerald
9e01e67aa3
Merge pull request #289 from wismer/array-iterator-method-bindings
Array iterator method bindings
2018-06-21 15:24:25 -07:00
Nick Fitzgerald
22feded106
Merge pull request #288 from belfz/expose-bindings/object-has-own-property-allow-jsvalue
allows using &JsValue as an arg to Object's has_own_property
2018-06-21 15:21:54 -07:00
Matt Long
a95476a8ee add binding for entries method 2018-06-21 17:21:35 -04:00
Matt Long
4cc73877a6 add binding for keys method 2018-06-21 17:00:02 -04:00
belfz
dd3740e2fb allows using &JsValue as an arg to Object's has_own_property 2018-06-21 22:51:30 +02:00
Nick Fitzgerald
0b29721194
Merge pull request #285 from belfz/expose-bindings/object-property-is-enumerable
implements Object.prototype.propertyIsEnumerable() binding
2018-06-21 13:39:09 -07:00
belfz
420eaffcb3 adds missing unit tests for property_is_enumerable 2018-06-21 21:32:03 +02:00
belfz
1e1276410a implements Object.prototype.isPrototypeOf() binding 2018-06-21 13:56:24 +02:00
R. Andrew Ohana
6ef817b350
Merge pull request #283 from robertDurst/basic-usage-md
Basic Usage md clarification
2018-06-21 00:14:13 -07:00
R. Andrew Ohana
bab5bd79a0
Merge pull request #284 from belfz/expose-bindings/object-is-prototype-of
implements Object.isPrototypeOf binding
2018-06-21 00:12:10 -07:00
belfz
77ad68673c implements Object.isPrototypeOf binding 2018-06-21 07:36:24 +02:00
robertdurst
652dab0abf Basic Usage md clarification 2018-06-20 21:27:30 -07:00
Nick Fitzgerald
669ed4d644
Merge pull request #282 from wismer/non-closure-array-bindings
Non closure array bindings
2018-06-20 16:36:22 -07:00
Matt Long
a8cd428850 add binding for includes 2018-06-20 18:36:10 -04:00
Matt Long
eb6c2a239c add binding for toString 2018-06-20 18:23:26 -04:00
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