Sha256: a6f9eb36cb550cf310a66fc85ca4e4bc18df279936b491c55fbb6af9e5626a89
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 Bytes
Contents
'use strict'; const common = require('../common'); const assert = require('assert'); const path = require('path'); const child_process = require('child_process'); const wrong_script = path.join(common.fixturesDir, 'cert.pem'); const p = child_process.spawn(process.execPath, [ '-e', 'require(process.argv[1]);', wrong_script ]); p.stdout.on('data', function(data) { common.fail('Unexpected stdout data: ' + data); }); let output = ''; p.stderr.on('data', function(data) { output += data; }); process.on('exit', function() { assert(/BEGIN CERT/.test(output)); assert(/^\s+\^/m.test(output)); assert(/Invalid left-hand side expression in prefix operation/.test(output)); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
node-compiler-0.9.1 | vendor/node/test/parallel/test-vm-syntax-error-stderr.js |
node-compiler-0.9.0 | vendor/node-v7.2.1/test/parallel/test-vm-syntax-error-stderr.js |