The <script> tag allows this by using a 'type' attribute:
<script type="application/javascript;version=1.7">
let a='bar';
console.log(a);
</script>
But how to specify the version (e.g. 1.7) when evaluating on the
current page using eval() ?
Honza
Cheers,
Shawn
The eval() Jan is referring to is jsdIStackFrame.eval(). So we need to
recreate the scope chain. I guess we can do this by nesting all of the
objects in the chain using 'with'?
jjb
Oh, the one we fully control and can modify however we want to? How
about we just add a "version" argument to it?
-Boris
I guess the Web Console could happily utilize this too.
Honza