Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

语句的执行 #52

Open
jinzhepro opened this issue May 4, 2023 · 0 comments
Open

语句的执行 #52

jinzhepro opened this issue May 4, 2023 · 0 comments

Comments

@jinzhepro
Copy link
Owner

jinzhepro commented May 4, 2023

Completion Record 标准类型

  1. [[type]]:完成的类型(break、continue、return、throw、normal)
  2. [[value]] :返回值(如果没有,则为empty)
  3. [[target]] :语句的目标
{
  var a = 1; // normal, undefined, empty
  return 2; // return, 2, empty
  a++;
  console.log(a);
} // return, 2, empty
// 带有target的语句
outer: while(true) { 
    inner: while(true) {
    break outer;
  }
}
console.log("finished")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant