Skip to content

indexOf on string not working #7

Open
@marcohamersma

Description

@marcohamersma

Hey hey,
Thanks for making this preset, it's a really neat idea. I'm running into an issue with one of the transformations, though, and I'm not sure exactly what to do about it.

I have a couple of instances of string.indexOf('testString') in my code, but after transformation it seems to use a function that's not working with strings, as I'm getting the following error while debugging in Extendscript Toolkit: testString is not an object.

The function that is used instead of the default indexOf:
image

Do you know of a way of preventing this error, maybe to ignore this specific transformation or overwriting it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions