mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-19 23:57:09 +02:00
fix(common/scripting): set languageVersion to ES6
This commit is contained in:
parent
d8d4f4926d
commit
ff43a557d7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user