Assigned
Status Update
Comments
ia...@google.com <ia...@google.com> #2
Thank you for this request. I will be filing this as a bug internally and so will also change this issue into a bug report as it seems like this
The following code works, so again, seems like it may be the parser that is blocking this and not the v8 engine.
function classTest(){
eval(`class c {static p = 1}; console.log(c.p)`)
}
That said, we need to look into this a bit further, so once we have any updates, we will update this thread.
Thanks again.
ad...@theaddondepot.com <ad...@theaddondepot.com> #3
Since I have your attention can we get support for the following features as well:
These are also supported in browsers but not present in GAS.
mu...@google.com <mu...@google.com> #4
Addressing your comment, for the features you have mentioned, it would be best if you open a new report of
is...@google.com <is...@google.com>
ad...@gmail.com <ad...@gmail.com> #5
Comment has been deleted.
ad...@gmail.com <ad...@gmail.com> #6
This was originally posted [here](https://issuetracker.google.com/u/0/issues/194120497 ) as a bug. Would be good if this feature was added.
jp...@google.com <jp...@google.com>
dr...@rpgis.in <dr...@rpgis.in> #7
class MyClass {
instanceField;
instanceFieldWithInitializer = "instance field";
static staticField;
static staticFieldWithInitializer = "static field";
#privateField;
#privateFieldWithInitializer = 42;
static #privateStaticField;
static #privateStaticFieldWithInitializer = 42;
}
These should all be supported by GAS, as they are in Chrome for client side scripts.
Please help!
instanceField;
instanceFieldWithInitializer = "instance field";
static staticField;
static staticFieldWithInitializer = "static field";
#privateField;
#privateFieldWithInitializer = 42;
static #privateStaticField;
static #privateStaticFieldWithInitializer = 42;
}
These should all be supported by GAS, as they are in Chrome for client side scripts.
Please help!
Description
Google Apps Script does not currently support static class properties of the form:
This feature has recently become standard and is available in Chrome V8. Would love to see it implemented in GAS.