fix cross-scope inlining of AST_Functions (#2486)

fixes #2485
This commit is contained in:
Alex Lam S.L
2017-11-16 10:04:30 +08:00
committed by GitHub
parent ebe761cad0
commit ae28a24c7f
4 changed files with 61 additions and 6 deletions

View File

@@ -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);