commit ff43a557d705ea11bcf9f8f8ce7699b532cd0030
parent d8d4f4926d7024f951b1234abd83433507f7d313
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Thu,  1 Feb 2024 00:08:38 +0100

fix(common/scripting): set languageVersion to ES6

Diffstat:
Mcommon/src/main/kotlin/me/rhunk/snapenhance/common/scripting/ktx/RhinoKtx.kt | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/common/src/main/kotlin/me/rhunk/snapenhance/common/scripting/ktx/RhinoKtx.kt b/common/src/main/kotlin/me/rhunk/snapenhance/common/scripting/ktx/RhinoKtx.kt @@ -9,6 +9,7 @@ import org.mozilla.javascript.Wrapper fun contextScope(f: Context.() -> Any?): Any? { val context = Context.enter() context.optimizationLevel = -1 + context.languageVersion = Context.VERSION_ES6 try { return context.f().let { if (it is Wrapper) {