aboutsummaryrefslogtreecommitdiff
path: root/src/test/njs_unit_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/njs_unit_test.c')
-rw-r--r--src/test/njs_unit_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/njs_unit_test.c b/src/test/njs_unit_test.c
index 502e3fb8..958b0049 100644
--- a/src/test/njs_unit_test.c
+++ b/src/test/njs_unit_test.c
@@ -10200,10 +10200,12 @@ static njs_unit_test_t njs_test[] =
"c()()()"),
njs_str("1") },
-#if 0
{ njs_str("function f() {}; f += 1; f"),
njs_str("[object Function]1") },
-#endif
+
+ { njs_str("function f() { function g() { g = undefined; }; g(); g(); };"
+ "f()"),
+ njs_str("TypeError: undefined is not a function") },
{ njs_str("function f() {}; function g() { return f }; g()"),
njs_str("[object Function]") },