summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Forward.h
diff options
context:
space:
mode:
author0xtechnobabble <59543001+0xtechnobabble@users.noreply.github.com>2020-03-11 21:09:20 +0200
committerGitHub <noreply@github.com>2020-03-11 20:09:20 +0100
commitdf40c85f80a571173ad85ad34b8dd500d4e6866b (patch)
tree95f69a0e262c50d237b1754be0923dbe6ec1df99 /Libraries/LibJS/Forward.h
parent542108421edd65f9fc5605d17331a7b14efab581 (diff)
downloadserenity-df40c85f80a571173ad85ad34b8dd500d4e6866b.zip
LibJS: Allow the choice of a scope of declaration for a variable (#1408)
Previously, we were assuming all declared variables were bound to a block scope, now, with the addition of declaration types, we can bind a variable to a block scope using `let`, or a function scope (the scope of the inner-most enclosing function of a `var` declaration) using `var`.
Diffstat (limited to 'Libraries/LibJS/Forward.h')
-rw-r--r--Libraries/LibJS/Forward.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibJS/Forward.h b/Libraries/LibJS/Forward.h
index 64f5beeb9a..0af451f63e 100644
--- a/Libraries/LibJS/Forward.h
+++ b/Libraries/LibJS/Forward.h
@@ -37,5 +37,6 @@ class Object;
class PrimitiveString;
class ScopeNode;
class Value;
+enum class DeclarationType;
}