Skip to content

Spread operator not works as expected in all cases (3.0.0-beta-2042) #1344

Answered by lahma
berkid89 asked this question in Q&A
Discussion options

You must be logged in to vote

You are invoking function test with string parameter that has value "{'name':'John','age':30}" so you are trying to spread string. This shows the difference and expected output var result = engine.Evaluate("test({'name':'John','age':30})"), here's object parameter instead of string.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@berkid89
Comment options

Answer selected by berkid89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1343 on November 03, 2022 15:03.