Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 414 Bytes
from js_helper import _do_test_raw
def test_no_dups():
"""Test that errors are not duplicated."""
assert _do_test_raw("""
eval("test");
""").message_count == 1
assert _do_test_raw("""
var x = eval();
""").message_count == 1
assert _do_test_raw("""
eval = 123;
""").message_count == 1
assert _do_test_raw("""
eval.prototype = true;
""").message_count == 2
Jump to Line
Something went wrong with that request. Please try again.