578d59ebc0
Merge pull request #1440 from c410-f3r/getters
...
Getters/Setters for fields
2019-04-30 12:07:34 -05:00
3031c15bf6
Rewrite docs for getters/setters
2019-04-30 10:06:38 -07:00
c70ed36be4
Add some tests which do computation in getters/setters
2019-04-30 10:02:11 -07:00
470eea9fb0
Getters/Setters for fields
2019-04-30 10:26:03 -03:00
402e72ed39
Merge pull request #1495 from alexcrichton/bump
...
Bump to 0.2.43
0.2.43
2019-04-29 11:21:21 -05:00
f2429be07f
Bump to 0.2.43
2019-04-29 08:28:41 -07:00
77d2c2856e
Don't rustfmt web-sys bindings
...
File is then too large to upload to GitHub!
Closes #1482
2019-04-29 08:20:01 -07:00
103da22692
Merge pull request #1494 from limira/patch-1
...
update 'host bindings' -> 'web idl bindings'
2019-04-29 09:27:30 -05:00
60bb68649b
Merge pull request #1490 from RReverser/deprecate-custom-try-from
...
Recommend to use dyn_ref on funcs and strings
2019-04-29 09:08:00 -05:00
0c4cdefd07
Rustfmt
2019-04-29 09:45:23 -03:00
9c7faefed1
update 'host bindings' -> 'web idl bindings'
2019-04-28 13:58:22 +07:00
36c0a1347d
Merge pull request #1492 from RReverser/function-new-with-args
...
Add bindings for `new Function(args, body)`
2019-04-26 12:05:46 -05:00
4865b08513
Merge pull request #1491 from RReverser/more-variadic
...
Add missing variadic bindings for string methods
2019-04-26 12:04:36 -05:00
814f576b1d
Add bindings for new Function(args, body)
...
We don't support variadic args in front, but, luckily for us, `new Function` accepts comma-separated args as a single string as well (see updated JSON test for an example).
2019-04-26 17:42:23 +01:00
85eea18658
Adds missing variadic bindings for string methods
...
- `JsString::from_code_point` - allows to create JS strings using slice of codes in WASM memory.
- `JsString::from_char_code` - same as above, but also uses updated signature with `u16` instead of `u32` (partially helps with #1460 at least for the new binding).
2019-04-26 16:57:34 +01:00
ccc99cd047
Recommend to use dyn_ref on funcs and strings
...
Now that functions and strings work properly with custom typechecks, these custom methods seem obsolete, so I'd recommend to use standard dyn_ref instead.
2019-04-26 15:50:08 +01:00
26f9d86f62
Merge pull request #1487 from ibaryshnikov/shared_array_buffer_tests
...
Added tests for SharedArrayBuffer
2019-04-26 09:38:16 -05:00
cd7aa717c5
Merge pull request #1467 from RReverser/tuple-structs
...
Generate bindings for indexed struct properties
2019-04-26 09:21:36 -05:00
38fcfc3125
Merge pull request #1456 from bakkot/object-from-entries
...
js-sys: add Object.fromEntries
2019-04-26 09:10:53 -05:00
70480ad29d
fix test
2019-04-25 21:21:17 -07:00
a32d2553fc
js-sys: add Object.fromEntries
2019-04-25 20:52:29 -07:00
7f4f9ce136
Merge pull request #1486 from alexcrichton/fix-raytrace
...
Fix raytrace example by using an older nightly
2019-04-25 22:30:03 -05:00
26df24ae6a
Merge pull request #1484 from alexcrichton/new-node
...
Upgrade version of node.js used on Azure
2019-04-25 22:14:31 -05:00
af22a26880
added tests for SharedArrayBuffer
2019-04-26 10:59:06 +08:00
7e512ba187
Merge pull request #1463 from ibaryshnikov/atomics-support
...
added Atomics and SharedArrayBuffer
2019-04-25 21:48:55 -05:00
4156a37856
Merge pull request #1485 from alexcrichton/missing-vector-len
...
Add missing `expose_wasm_vector_len`
2019-04-25 21:48:09 -05:00
03299a73b4
Fix raytrace example by using an older nightly
...
Unfortunately xargo is currently broken against master Rust, so let's
pin to an older nightly while that's sorted out
2019-04-25 19:47:59 -07:00
dea5bad698
Fix test for node 12
2019-04-25 19:30:32 -07:00
21205eccf2
Add missing expose_wasm_vector_len
...
Found through some testing I did awhile back!
2019-04-25 19:21:13 -07:00
7882fe7807
Upgrade version of node.js used on Azure
...
Pulls in some nice new features!
2019-04-25 19:16:58 -07:00
b05ae44a8c
changed f64 to i32 in static methods of Atomics, changed static_method_of to js_namespace, set typed_array type to Int32Array in notify and wait methods
2019-04-26 01:56:58 +08:00
58245b0587
changed String to JsString in Atomics::wait
2019-04-26 00:02:19 +08:00
de2c2cf26c
fixed Atomics::wait and Atomics::wait_with_timeout return type
2019-04-25 19:18:31 +08:00
a0a3a1446d
Include props usage in exported_types example
2019-04-24 20:30:31 +01:00
cc89109004
Merge pull request #1473 from RReverser/chars
...
Add JsString <-> char conversions
2019-04-24 09:49:56 -07:00
680a6bbb0c
Remove PartialEq<char> for JsString for now
...
This seems to spark controversy, so removing for now but should be easy enough to still add in the future.
2019-04-24 13:40:18 +01:00
0759bfa7e2
f32 changed to f64 in Atomics
2019-04-24 00:27:15 +08:00
f1eaefdf0d
fixed value types in Atomics methods
2019-04-24 00:25:25 +08:00
1071457c3d
added SharedArrayBuffer and Atomics to js-sys
2019-04-24 00:01:15 +08:00
bc4a98d146
Add JsString <-> char conversions
...
These are pretty common and already supported via ABI conversions, yet pretty easy to get wrong when converting them manually.
Fixes #1363 .
2019-04-23 15:54:06 +01:00
ac7230b678
Merge pull request #1479 from xeqlol/patch-1
...
guide: fixed typo in js-objects-in-rust.md
2019-04-22 10:44:24 -05:00
a0700f8de3
Merge pull request #1477 from lnicola/impl-debug-jsfuture
...
Implement Debug for JsFuture
2019-04-22 10:42:55 -05:00
735b1a1aa8
guide: fixed typo in js-objects-in.rust.md
2019-04-21 09:44:24 +05:00
04a78badc5
Implement Debug for JsFuture
2019-04-20 09:41:59 +03:00
7decb133f0
Merge pull request #1472 from c410-f3r/ts-methods
...
TS: Add docs for methods
2019-04-18 09:07:33 -07:00
59fd11b31c
TS: Add docs for methods
2019-04-17 18:41:20 -03:00
68e6b4f187
Merge pull request #1469 from RReverser/fix-primitive-new-tests
...
Fix or suppress {primitive}::new warnings in tests
2019-04-17 13:25:06 -05:00
d7650863ab
Fix or suppress {primitive}::new warnings in tests
...
Constructing boxed primitives was deprecated in #1447 .
Some tests have been still using these methods, so this PR either updates them to use newly added {primitive}::from implementations or adds `#[allow(deprecated)]` where necessary.
2019-04-17 18:25:45 +01:00
3a7d384dc8
Generate bindings for indexed struct properties
...
This allows to export fields of tuple-like structs as indexed JS properties.
2019-04-17 12:56:14 +01:00
10cbc789a8
Install rustfmt on azure pipelines
2019-04-16 10:53:50 -07:00