From c8167b8d7685b164849265564a399f7f7a6218eb Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Thu, 15 Aug 2013 07:44:30 -0700 Subject: [PATCH] set Rhino shell's JS version to 180 (#477) fixes a crash with JS 1.8 keywords (such as `let`) --- rhino/rhino-shim.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rhino/rhino-shim.js b/rhino/rhino-shim.js index 16c126f6..1ffb1e3b 100644 --- a/rhino/rhino-shim.js +++ b/rhino/rhino-shim.js @@ -4,6 +4,9 @@ * to get JSDoc to run. */ +// Set the JS version that the Rhino interpreter will use. +version(180); + /** * Emulate DOM timeout/interval functions. * @see https://developer.mozilla.org/en-US/docs/DOM/window#Methods