This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.scripting.sightly.js.provider-1.0.22 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-js-provider.git
commit f4ef89e035698428aee8034ff8f04b76ae581f98 Author: Radu Cotescu <[email protected]> AuthorDate: Thu Mar 30 12:46:44 2017 +0000 SLING-6752 - Removed ES6 checks from Q.js * removed redundant Q checks for Rhino git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/scripting/sightly/js-use-provider@1789518 13f79535-47bb-0310-9956-ffa450edef68 --- .../SLING-INF/libs/sling/sightly/js/3rd-party/q.js | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/main/resources/SLING-INF/libs/sling/sightly/js/3rd-party/q.js b/src/main/resources/SLING-INF/libs/sling/sightly/js/3rd-party/q.js index 5ed1dba..a72ea1d 100644 --- a/src/main/resources/SLING-INF/libs/sling/sightly/js/3rd-party/q.js +++ b/src/main/resources/SLING-INF/libs/sling/sightly/js/3rd-party/q.js @@ -64,11 +64,6 @@ "use strict"; var hasStacks = false; -try { - throw new Error(); -} catch (e) { - hasStacks = !!e.stack; -} // All code after this point will be filtered from stack traces reported // by Q. @@ -324,21 +319,8 @@ if (typeof ReturnValue !== "undefined") { }; } -// Until V8 3.19 / Chromium 29 is released, SpiderMonkey is the only -// engine that has a deployed base of browsers that support generators. -// However, SM's generators use the Python-inspired semantics of -// outdated ES6 drafts. We would like to support ES6, but we'd also -// like to make it possible to use generators in deployed browsers, so -// we also support Python-style generators. At some point we can remove -// this block. -var hasES6Generators; -try { - /* jshint evil: true, nonew: false */ - new Function("(function* (){ yield 1; })"); - hasES6Generators = true; -} catch (e) { - hasES6Generators = false; -} +// modified this line for Apache Sling, since Rhino doesn't provide support for ES6 +var hasES6Generators = false; // long stack traces -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
