Skip to content

[js] argument names are not escaped for reserved identifiers #6449

@nadako

Description

@nadako

@jcward found this one. shouldn't be too hard to fix:

class Main {
    static function main() {
        v(10);
    }

    static function v(isNaN) {
        trace(Math.isNaN(isNaN));
    }
}
Main.v = function(isNaN) {
	console.log(isNaN(isNaN));
};

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions