mathew-kurian / mathew-kurian/TraceError.js

m.has is not a function

Open
#5 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
18
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Hi, Thanks for putting the code out there, it's just what I'm looking for.

When I run a minified production build of my code I'm getting an error message in TraceError code:

m.has is not a function TypeError: m.has is not a function

this occurs at:

    key: "_defineProperty",
    value: function(e, t) {
        var a = m.has(this) ? m.get(this) : {};
        a[e] = t,
        m.set(this, a)
      } 

Is this a known error? Any work-arounds?
Thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported error in a minified production build and tracing the shown _defineProperty code back to its source in TraceError.js. Compare the production and non-minified builds to identify why m.has is not callable; the issue is done when the production build runs without this error and the behavior is covered by a verified reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.