The simplest string of JavaScript code, trigger VM8 label appears in the Chrome developer tools, the debugger

code show as below:

<html>
<script>

var code = "{ /* Jerry test generation */; debugger; console.log(\"Jerry\");}";
var testFunc = new Function(code);

testFunc();
</script>
</html>

running result:

Single-step, into the testFunc function:

VM8 label appeared:

For more Jerry's original article, please pay attention to the public number "Wang Zixi":

Released 7169 original articles · won praise 654 · Views 1.24 million +

Guess you like

Origin blog.csdn.net/i042416/article/details/105082888