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

nodules / node-eval / 29
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: issue-18
DEFAULT BRANCH: master
Ran 29 Jul 2016 03:34AM UTC
Jobs 1
Files 1
Run time 0s
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
29

push

travis-ci

Yeti-or
Add empty object to expressionStatements.

The idea is next: when you write
```
module.export = {
    42: 42
}
```

You assume that you are in node env, so you have global object module,
but we as you see in this code it doesn't exports anything because of typo.
`export` -> `exports`
so in node env you will get undefined
but as we want to be nice eval and eval expressions without module.exports:
```
({ 42: 42 })
```
we try to do it and get an Error, because code have no `module` to write `export` prop in it
So our desicion is to temporaly polute global object with `module`.

47 of 50 relevant lines covered (94.0%)

7.66 hits per line

Jobs
ID Job ID Ran Files Coverage
2 29.2 (COVERALLS=1) 29 Jul 2016 03:34AM UTC 0
94.0
Travis Job 29.2
Source Files on build 29
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #29
  • dbb4e0b1 on github
  • Next Build on yeti-or.addModuleToExpressions (#30)
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