Skip to content

Salsa should not suggest "caller" in strict mode as it causes TypeError #2454

@alexdima

Description

@alexdima

Testing #2218

function restricted()
{
    "use strict";
    restricted.ca
}

console.log(restricted());

image

Since we're at it, it could also highlight the caller and arguments below with a squiggly indicating a TypeError:

function restricted()
{
    "use strict";
    restricted.caller;    // throws a TypeError
    restricted.arguments; // throws a TypeError
}

console.log(restricted());

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions