Skip to content

Don't modify passed options #13

@moll

Description

@moll

Themis modifies the passed-in options object. That causes unexpected stuff when that object is shared between invocations. E.g. when given immutable options:

TypeError: Can't add property file, object is not extensible
  at Object.Utils.defaults (/Users/user/node_modules/themis/src/themis.js:123:50)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions