Skip to content

Commit

Permalink
v7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
John Kleinschmidt committed Oct 22, 2019
1 parent 3c4921f commit e77fd2c
Show file tree
Hide file tree
Showing 5 changed files with 1,211 additions and 627 deletions.
2 changes: 1 addition & 1 deletion download-mksnapshot.js
Expand Up @@ -17,7 +17,7 @@ function download (version, callback) {

function processDownload (err, zipPath) {
if (err != null) throw err
extractZip(zipPath, {dir: path.join(__dirname, 'bin')}, function (error) {
extractZip(zipPath, { dir: path.join(__dirname, 'bin') }, function (error) {
if (error != null) throw error
if (process.platform !== 'win32') {
fs.chmod(path.join(__dirname, 'bin', 'mksnapshot'), '755', function (error) {
Expand Down
6 changes: 3 additions & 3 deletions mksnapshot.js
Expand Up @@ -16,8 +16,8 @@ function getBinaryPath (binary, binaryPath) {

const args = process.argv.slice(2)
if (args.length === 0 || args.includes('--help')) {
console.log(`Usage: mksnapshot file.js (--output_dir OUTPUT_DIR). ` +
`Additional mksnapshot args except for --startup_blob are supported:`)
console.log('Usage: mksnapshot file.js (--output_dir OUTPUT_DIR). ' +
'Additional mksnapshot args except for --startup_blob are supported:')
args.push('--help')
}
const outDirIdx = args.indexOf('--output_dir')
Expand Down Expand Up @@ -73,7 +73,7 @@ if (args.includes('--help')) {
}

fs.copyFileSync(path.join(workingDir, 'snapshot_blob.bin'),
path.join(outputDir, 'snapshot_blob.bin'))
path.join(outputDir, 'snapshot_blob.bin'))

const v8ContextGenCommand = getBinaryPath('v8_context_snapshot_generator', workingDir)
const v8ContextGenArgs = [
Expand Down

0 comments on commit e77fd2c

Please sign in to comment.