Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Commit

Permalink
feat(pkg): update to latest esprima for enabling instrumentation of a…
Browse files Browse the repository at this point in the history
…sync/await (#132)

This update allows isparta to instrument async/await functions without babel
  • Loading branch information
samshull authored and douglasduteil committed Jul 4, 2018
1 parent 7e89d4e commit 638ac1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@ sudo: false
language: node_js
node_js:
- 'stable'
- '5'
- '4'
- 'io.js'
- '0.12'
- '0.10'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"babel-core": "^6.1.4",
"escodegen": "^1.6.1",
"esprima": "^2.1.0",
"esprima": "^4.0.0",
"istanbul": "^0.4.0",
"mkdirp": "^0.5.0",
"nomnomnomnom": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/instrumenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import istanbul from 'istanbul';
import {transform as babelTransform} from 'babel-core';

import esprima from 'esprima';
import { parse } from 'esprima';
import escodegen from 'escodegen';

import {SourceMapConsumer} from 'source-map';
Expand All @@ -30,7 +30,7 @@ export class Instrumenter extends istanbul.Instrumenter {
this._babelMap = new SourceMapConsumer(result.map);

// PARSE
let program = esprima.parse(result.code, {
let program = parse(result.code, {
loc: true,
range: true,
tokens: this.opts.preserveComments,
Expand Down

0 comments on commit 638ac1e

Please sign in to comment.