node-chakracore icon indicating copy to clipboard operation
node-chakracore copied to clipboard

ChakraCore does not support catch statements with no argument binding

Open boingoing opened this issue 7 years ago • 2 comments

  • Version: master
  • Platform: all
  • Subsystem: all

V8 now supports catch statements with no argument binding. Some of the Javascript code in node has begun to take a dependency on this syntax. I added argument bindings back in node-chakracore (via 1f550c99ea5673f051a60e9c4032f2648f5dd842) but we need to remove these when ChakraCore supports this new syntax.

This new concise syntax looks like this, by the way:

try {
  // do something
} catch {
  // no binding for an argument to catch
}

boingoing avatar Jun 19 '18 02:06 boingoing

There is a ChakraCore PR to add this, but it has stalled: https://github.com/Microsoft/ChakraCore/pull/5310

kfarnung avatar Sep 20 '18 00:09 kfarnung

@kfarnung it has been merged.

Mouvedia avatar Feb 07 '19 00:02 Mouvedia