Skip to content

Instantly share code, notes, and snippets.

@niwatako
Created May 8, 2016 05:22
Show Gist options
  • Select an option

  • Save niwatako/448bb4a8124e3e8f6af0e5da7b4e0e50 to your computer and use it in GitHub Desktop.

Select an option

Save niwatako/448bb4a8124e3e8f6af0e5da7b4e0e50 to your computer and use it in GitHub Desktop.
ES6では最後の評価を保持し続けないようになった #CodePiece #kyotojs
/* 最後の評価を保持しないようになった */
eval( '42; if (true) {}' ); // ES5 => 42
eval( '42; if (true) {}' ); // ES6 => undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment