Skip to content

Spec mismatch in Array.prototype.lastIndexOf #1325

Closed
@stonechoe

Description

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

let lastIndexOf = require("core-js-pure/es/array/last-index-of");

lastIndexOf([], 0, {
  valueOf: function () {
    throw 42;
  },
});

Activity

359 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Spec mismatch in `Array.prototype.lastIndexOf` · Issue #1325 · zloirock/core-js