aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-11-16 10:04:30 +0800
committerGitHub <noreply@github.com>2017-11-16 10:04:30 +0800
commitae28a24c7f7919d8de1c3044f28571ebe2036850 (patch)
treeddcc46bb6e6acd01685507b1b735b7bb7c082f33 /lib/ast.js
parentebe761cad09343e514a7a02b591dbb93f651c888 (diff)
downloadtracifyjs-ae28a24c7f7919d8de1c3044f28571ebe2036850.tar.gz
tracifyjs-ae28a24c7f7919d8de1c3044f28571ebe2036850.zip
fix cross-scope inlining of `AST_Function`s (#2486)
fixes #2485
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ast.js b/lib/ast.js
index 9b243f16..a2aa2b40 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -352,11 +352,11 @@ var AST_Accessor = DEFNODE("Accessor", null, {
$documentation: "A setter/getter function. The `name` property is always null."
}, AST_Lambda);
-var AST_Function = DEFNODE("Function", null, {
+var AST_Function = DEFNODE("Function", "inlined", {
$documentation: "A function expression"
}, AST_Lambda);
-var AST_Defun = DEFNODE("Defun", null, {
+var AST_Defun = DEFNODE("Defun", "inlined", {
$documentation: "A function definition"
}, AST_Lambda);