Skip to content

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

@caub

Description

@caub

StackFrame constructor doesn't accept object with null prototype:

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

Metadata

Metadata

Assignees

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