Skip to content

writeElement can't process the Number or String object #4

@flier

Description

@flier

As you know, 3.14 and new Number(3.14) are same in Javascript, but typeof(3.14) == 'number' and typeof(new Number(3.14)) == 'object', the writeElement function in bson.js doesn't process the second situation, including Number, String and Boolean.

http://bonsaiden.github.com/JavaScript-Garden/zh/#types.typeof

Metadata

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