Comments (3)
Completely agree. Thanks for reporting this. I need to improve the argument / function arity coercion logic. In particular it should be more deliberate in how it handles arrays.
Ill have an update soon.
from xq-promise.
Example query which replicates this issue
let $arguments := array { "a", "b", "c" }
let $promise := promise:defer(fn:concat#3, $arguments)
return
unit:assert-equals("abc", $promise())
from xq-promise.
Had to add code to convert Array to Value[] for passing into a dynamic function invocation.
from xq-promise.
Related Issues (16)
- Calling promise fails if worker takes more than one argument HOT 4
- fail should be provided a map with error information as well as arguments bound. HOT 3
- promise:fork HOT 24
- XML transformations cannot be parallelized HOT 1
- XPTY0004 issue with xq-promise 0.8.0 beta HOT 3
- Add support for EXPath packaging HOT 2
- Success callback called twice on failure
- When should pass non function items
- which promise specification is used as blue print, e.g. all() vs. when() HOT 12
- pure xquery implementation HOT 6
- Support for updates HOT 5
- Rewriting FOR Clause HOT 4
- Promise Module → Async Module? HOT 3
- Update docs to leverage xquery:fork-join
- xq-promise Terminology vs. JavaScript/jQuery
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xq-promise.