Skip to content

Commit

Permalink
[fixup] add test from the original issue
Browse files Browse the repository at this point in the history
The test however must be run with ASAN
  • Loading branch information
nickva committed Nov 30, 2023
1 parent 6ce5483 commit 9e7540b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_builtin.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,16 @@ function test_generator()
assert(v.value === undefined && v.done === true);
}

function test_proxy_is_array()
{
for (var r = new Proxy ([],{}) , y = 0 ; y < 131072 ; y ++ )
r = new Proxy (r, {});

assert_throws(InternalError, (function() {
Array.isArray(r);
}));
}

test();
test_function();
test_enum();
Expand All @@ -724,3 +734,4 @@ test_map();
test_weak_map();
test_weak_set();
test_generator();
test_proxy_is_array();

0 comments on commit 9e7540b

Please sign in to comment.