adobe / json-formula

Query language for JSON documents
http://opensource.adobe.com/json-formula/
Apache License 2.0
19 stars 8 forks source link

Odd array type coercion in "replace" #170

Closed Eswcvlad closed 4 months ago

Eswcvlad commented 4 months ago

Looks like JavaScript toString is used on replacement, when subject is string and replacement is array:

With what is in the spec right now I would expect a TypeError here.

Oddly enough, with objects it works as expected: