Skip to content

using Reflect TypeError: CreateListFromArrayLike called on non-object #10485

@taozhi8833998

Description

@taozhi8833998
  • 7.3.0:
  • Mac:
  • Subsystem:

I am not sure whether it's an issue or node new stable version have intention to do this

this codeReflect.apply(Object.prototype.toString, {}) throw the error

TypeError: CreateListFromArrayLike called on non-object

I have to using Reflect.apply(Object.prototype.toString, {}, []) to make it working

Reflect.apply(Object.prototype.toString, {}, [])
'[object Object]'

if i am wrong, correct me, and close the issue!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssues and PRs that are invalid.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions