ardnep
ardnep

Reputation: 1

Getting `ReferenceError: dis is not defined` when using Spidermonkey's JS shell

According to the Spidermonkey hacking tips documentation, the JS Shell provides a function called dis that dumps the bytecode of a function. However, when I try to use it, I get an error:

Code:

function main() {
  console.log('Hello World');
}

dis(main);

Error: ReferenceError: dis is not defined

Setup Details:

Upvotes: 0

Views: 28

Answers (0)

Related Questions