]> git.kaiwu.me - njs.git/commitdiff
Uncommented a successful test of Object.create([1,2]).length.
authorValentin Bartenev <vbart@nginx.com>
Tue, 21 May 2019 18:15:21 +0000 (21:15 +0300)
committerValentin Bartenev <vbart@nginx.com>
Tue, 21 May 2019 18:15:21 +0000 (21:15 +0300)
It's actually passing after f5bdddca3252.

njs/test/njs_unit_test.c

index c0da26c93eba84ae09e97dab31d04d04f338b8ce..683a86c6dfb4548a7cb99cea6058e8c22f2344fc 100644 (file)
@@ -3399,10 +3399,8 @@ static njs_unit_test_t  njs_test[] =
     { nxt_string("\n[\n1\n,\n2]\n[\n0]"),
       nxt_string("1") },
 
-#if 0
     { nxt_string("Object.create([1,2]).length"),
       nxt_string("2") },
-#endif
 
     { nxt_string("Object.create(['α','β'])[1]"),
       nxt_string("β") },