tessel / t1-runtime

[UNMAINTAINED] Tessel 1 JavaScript runtime.
Other
117 stars 33 forks source link

Function toString can dump parameters #628

Closed tcr closed 10 years ago

tcr commented 10 years ago

We can and should recover parameter names from function debug info to aid in Function toString, e.g.

function ok (a, b, c) {
    return true;
}
console.log(ok)

printing

function ok (a, b, c) {
  [compiled bytecode]
}

This is a temporary holdover until we have take in JavaScript source code directly, so this is flagged pending-jsparser for now.