mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Simplify initialization of static
class properties in the worker-thread
Now that we no longer depend on the old Babel version in SystemJS we can remove the `static get ...` work-arounds used to define constants, which leads to slightly more compact code.
This commit is contained in:
parent
d950b91c4e
commit
b0a1af306d
6 changed files with 16 additions and 58 deletions
|
@ -513,9 +513,7 @@ function isPDFFunction(v) {
|
|||
}
|
||||
|
||||
class PostScriptStack {
|
||||
static get MAX_STACK_SIZE() {
|
||||
return shadow(this, "MAX_STACK_SIZE", 100);
|
||||
}
|
||||
static MAX_STACK_SIZE = 100;
|
||||
|
||||
constructor(initialStack) {
|
||||
this.stack = initialStack ? Array.from(initialStack) : [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue