-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(neon): JsFunction::bind()
and Object::prop()
#1056
Commits on Sep 27, 2024
-
Implement JsFunction::bind(), which creates a builder for calling a f…
…unction using the Try{From,Into}Js traits.
Configuration menu - View commit details
-
Copy full SHA for 5195a1b - Browse repository at this point
Copy the full SHA 5195a1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dce48c - Browse repository at this point
Copy the full SHA 2dce48cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e23492c - Browse repository at this point
Copy the full SHA e23492cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f8ff9e - Browse repository at this point
Copy the full SHA 0f8ff9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a72ea6c - Browse repository at this point
Copy the full SHA a72ea6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1369807 - Browse repository at this point
Copy the full SHA 1369807View commit details -
Optimization: only do the function type check of the callee when call…
…ing BindOptions::apply()
Configuration menu - View commit details
-
Copy full SHA for 9fa6a0d - Browse repository at this point
Copy the full SHA 9fa6a0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e26ba1 - Browse repository at this point
Copy the full SHA 5e26ba1View commit details -
remove unnecessary sys::fun::call helper, and add test case for calli…
…ng non-functions with .bind()
Configuration menu - View commit details
-
Copy full SHA for 670837f - Browse repository at this point
Copy the full SHA 670837fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f8e108 - Browse repository at this point
Copy the full SHA 1f8e108View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2b4d5b - Browse repository at this point
Copy the full SHA c2b4d5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b09460 - Browse repository at this point
Copy the full SHA 8b09460View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1bc138 - Browse repository at this point
Copy the full SHA f1bc138View commit details -
arg_with's closure doesn't need to require a Result, since TryIntoJs …
…is already implemented for NeonResult
Configuration menu - View commit details
-
Copy full SHA for 6253c56 - Browse repository at this point
Copy the full SHA 6253c56View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f13037 - Browse repository at this point
Copy the full SHA 9f13037View commit details -
BindOptions::this() takes a TryIntoJs (and is therefore fallible)
- tests for both strict and sloppy mode functions to show it works on primitives
Configuration menu - View commit details
-
Copy full SHA for d603630 - Browse repository at this point
Copy the full SHA d603630View commit details -
store object in
PropOptions
as aJsObject
so it doesn't need a ty……pe parameter other than for the key
Configuration menu - View commit details
-
Copy full SHA for 3305fc2 - Browse repository at this point
Copy the full SHA 3305fc2View commit details -
avoid the double-type-check of eagerly downcasting to function when c…
…alling .bind(), since it's performed when calling .apply()
Configuration menu - View commit details
-
Copy full SHA for b779e37 - Browse repository at this point
Copy the full SHA b779e37View commit details -
style: move the InvalidArg tag check to a match guard
Co-authored-by: K.J. Valencik <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a34531e - Browse repository at this point
Copy the full SHA a34531eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f3c58e - Browse repository at this point
Copy the full SHA 8f3c58eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9050dc4 - Browse repository at this point
Copy the full SHA 9050dc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72bc8b8 - Browse repository at this point
Copy the full SHA 72bc8b8View commit details -
move
call_local
into a method ofValueInternal
, so there's less o……f a weird inconsistency between the callee being something other than a Handle vs the other args
Configuration menu - View commit details
-
Copy full SHA for e37382d - Browse repository at this point
Copy the full SHA e37382dView commit details -
co-locate the impl of TryIntoArguments for With into the same module …
…as the other impls
Configuration menu - View commit details
-
Copy full SHA for 12d0217 - Browse repository at this point
Copy the full SHA 12d0217View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41c1376 - Browse repository at this point
Copy the full SHA 41c1376View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e44074 - Browse repository at this point
Copy the full SHA 6e44074View commit details -
- put back the
O: Object
type parameter to PropOptions for more pre……cise typing - add PropOptions::this() to return the object - add PropOptions::prop() to enable assignment chaining
Configuration menu - View commit details
-
Copy full SHA for fd643a2 - Browse repository at this point
Copy the full SHA fd643a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a4bbe3 - Browse repository at this point
Copy the full SHA 7a4bbe3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d264bc - Browse repository at this point
Copy the full SHA 3d264bcView commit details
Commits on Sep 28, 2024
-
- BindOptions::exec() - rename BindOptions::apply() to BindOptions::call() - eliminate call_method_with() from API docs
Configuration menu - View commit details
-
Copy full SHA for 7f1d108 - Browse repository at this point
Copy the full SHA 7f1d108View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84ee9ec - Browse repository at this point
Copy the full SHA 84ee9ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2158281 - Browse repository at this point
Copy the full SHA 2158281View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5a76b8 - Browse repository at this point
Copy the full SHA b5a76b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39eaada - Browse repository at this point
Copy the full SHA 39eaadaView commit details -
Remove
.call()
,.construct()
,.call_with()
, and `.construct_wit……h()` from docs
Configuration menu - View commit details
-
Copy full SHA for 942fb50 - Browse repository at this point
Copy the full SHA 942fb50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46918d2 - Browse repository at this point
Copy the full SHA 46918d2View commit details
Commits on Sep 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9bc02b6 - Browse repository at this point
Copy the full SHA 9bc02b6View commit details