• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bugsnag / bugsnag-node / 285
79%
master: 40%

Build:
Build:
LAST BUILD BRANCH: v2.4.3
DEFAULT BRANCH: master
Ran 23 Feb 2018 05:02PM UTC
Jobs 5
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
285

push

travis-ci

bengourley
Better preparation for cloned object serialization

When Utils.cloneObject() was called on an instance of a class,
such as the mongo driver's `ObjectId` instance, the copy would
bring across its enumerable private properties, but none of its
methods, resulting in a bad serialization like so:

      "id": {
        "id": {
          "0": 88,
          "1": 129,
          "2": 222,
          "3": 117,
          "4": 187,
          "5": 221,
          "6": 189,
          "7": 57,
          "8": 86,
          "9": 86,
          "10": 65,
          "11": 202
        },
        "bsontype": "ObjectID"
      }

Now just before cloning, objects are checked for a toJSON() method.
If they have one, the result of that is used for the clone resulting
in better serialization, such as:

      { "oid": "5a9045f5be123c8c5d811d35" }

331 of 439 branches covered (75.4%)

Branch coverage included in aggregate %.

459 of 557 relevant lines covered (82.41%)

717.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 285.1 23 Feb 2018 05:03PM UTC 0
79.32
Travis Job 285.1
2 285.2 23 Feb 2018 05:02PM UTC 0
79.32
Travis Job 285.2
3 285.3 23 Feb 2018 05:02PM UTC 0
79.32
Travis Job 285.3
4 285.4 23 Feb 2018 05:02PM UTC 0
79.32
Travis Job 285.4
5 285.5 23 Feb 2018 05:02PM UTC 0
79.32
Travis Job 285.5
Source Files on build 285
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #285
  • 50cb6163 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc