Skip to content

Object.setPrototypeOf works inconsistent with spec #1329

@stonechoe

Description

@stonechoe

Following code behaves differently depending on whether the native version is loaded, or if the polyfill is required and loaded:

const f = require('core-js-pure/actual/object/set-prototype-of');
f(1, {});

It throws in polyfill while it doesn't in native implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions