Skip to content

GMLive.js: inaccurate string negation #221

Description

@Miepee

Apologies if this is the wrong repo, didn't know where else to put it.
On GMLive.js I tried the following snippet:

var c = 0;
var c = "b" + "a" + (-"a") + "a";
trace(c);

Running that snippet causes baNaNa to get printed.
However, the GM compiler doesn't actually compile this:
image

GMLive should thus also fail and cause an error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions