question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: runBytecodeFile not working!

See original GitHub issue

Hi,

I am trying to programmatically run a simple compiled jsc file but nothing happens!

My code is: (index.js)

'use strict';

const v8 = require('v8');
const path = require('path');
const bytenode = require('bytenode');

v8.setFlagsFromString('--no-lazy');

const file = path.join(process.cwd(), 'test.jsc');

bytenode.runBytecodeFile(file);

test.js (test.jsc)

console.log('Hello World');

There is no output when running: node index.js

What am i doing wrong?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
blendsdkcommented, Apr 14, 2019

Thank you

1reaction
Blaconixcommented, Apr 14, 2019

Yeah, sounds amazing. On that note, you could also add an argument to the CLI --compile option to have the same functionality as you described above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUG: runBytecodeFile not working! · Issue #14 - GitHub
Hi, I am trying to programmatically run a simple compiled jsc file but nothing happens! My code is: (index.js) 'use strict'; ...
Read more >
1477491 – tc filter does not fail on malformed bytecode file
Description of problem: tc filter does not fail on malformed bytecode file. It reads only first line, creates filter and ignores other line....
Read more >
Xcode 14 update has bugs and my co… - Apple Developer
Xcode 14 update has bugs and my code in c++ is not compiling with memory issues.
Read more >
Bountysource
Example for runBytecodeFile not working. ... Help and Information. Frequently Asked Questions · Bugs and Feature Requests · Fees ...
Read more >
bytenode - npm
Start using bytenode in your project by running `npm i bytenode`. ... In Node 10.x, Bytenode does not work in debug mode. See...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found