Skip to content

Incorrect error message for missing symbol methods #1409

@bterlson

Description

@bterlson

For example:

var obj = Object.create(null);
obj[Symbol.iterator]();

Actual: TypeError: Object doesn't support property or method 'ToString'
Expected: Object doesn't support property or method 'Symbol.iterator'

Or we could go with an error message similar to v8 and sm:

obj[Symbol.iterator] is not a function

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions