We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cbd6a7 commit 68f0182Copy full SHA for 68f0182
test/rest-spread.js
@@ -4,6 +4,12 @@ var fs = require('fs');
4
var src = fs.readFileSync(__dirname + '/files/rest-spread.js');
5
6
test('rest-spread', function (t) {
7
- t.doesNotThrow(detective.bind(detective, src), 'Files with rest or spread do not throw')
+ try {
8
+ require('acorn5-object-spread/inject')
9
+ t.doesNotThrow(detective.bind(detective, src), 'Files with rest or spread do not throw')
10
+ } catch (_) {
11
+ // node 0.12
12
+ t.pass('SKIPPED rest spread')
13
+ }
14
t.end();
15
});
0 commit comments