GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bug: doesn't initialize from an object with null prototype · Issue #18 · stacktracejs/stackframe

Bug: doesn't initialize from an object with null prototype #18

New issue
Copy link
New issue
Copy link
Closed
Closed
Bug: doesn't initialize from an object with null prototype#18
Copy link
Assignees
eriwen

Description

@caub
caub
opened on Feb 13, 2019
Issue body actions

StackFrame constructor doesn't accept object with null prototype:

> const StackFrame = require('stackframe');
undefined
> new StackFrame({fileName:'lol'})
{ fileName: 'lol' }
> new StackFrame(Object.assign(Object.create(null),{fileName:'lol'}))
{}
> new StackFrame('lol'.match(/(?<fileName>\w+)/).groups)
{}
$ npm ls stackframe
├── [email protected] 
└─┬ [email protected]
  └── [email protected]  deduped

Activity

  1. devsnek commented on Feb 13, 2019

    @devsnek
    devsnek
    on Feb 13, 2019
    More actions

    issue is obj instanceof Object, which is... a weird way to test for objects, to say the least. it also uses obj.hasOwnProperty lower down which will cause issues when the first part is fixed.

  2. caub
    added a commit that references this issue on Feb 13, 2019

    fix stacktracejs#18

    This issue will close once commit 688174b is merged into the 'master' branch.
    688174b
  3. caub
    added 3 commits that reference this issue on Feb 20, 2019

    fix stacktracejs#18

    This issue will close once commit 8226d7d is merged into the 'master' branch.
    8226d7d

    fix stacktracejs#18

    This issue will close once commit 1c1c21e is merged into the 'master' branch.
    1c1c21e

    fix stacktracejs#18

    This issue will close once commit b506512 is merged into the 'master' branch.
    b506512
  4. eriwen
    self-assigned this
    on Sep 14, 2019
  5. caub
    added a commit that references this issue on Sep 20, 2019

    fix stacktracejs#18

    This issue will close once commit 147b7a5 is merged into the 'master' branch.
    147b7a5
  6. eriwen
    closed this as completedin 147b7a5on Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @eriwen
    eriwen

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.