Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

diary.js fails with latest traceur (0.4.1) #10

@lgersman

Description

@lgersman

when doing something legal like this

Diary.reporter(
    new ConsoleReporter({ console : myconsole })
);

diary.js will fail since traceur's Object.assign() polyfill signature has changed.

change line 31 in src/diary.js from

config = [defaults, config].reduce(Object.assign);

to

config = Object.assign( defaults, config);

and its fixed.

As far as i've looked into, there is also no testcase for this scenario in diary.js ... thats probably the reason why this issue was not detected before.

Metadata

Metadata

Assignees

No one assigned

    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