Home
last modified time | relevance | path

Searched refs:CheckStrictMode (Results 1 – 3 of 3) sorted by relevance

/external/v8/test/mjsunit/
Dstrict-mode.js28 function CheckStrictMode(code, exception) { class
90 CheckStrictMode("with({}) {}", SyntaxError);
93 CheckStrictMode("function eval() {}", SyntaxError);
96 CheckStrictMode("function arguments() {}", SyntaxError);
99 CheckStrictMode("function foo(a, b, eval, c, d) {}", SyntaxError);
102 CheckStrictMode("function foo(a, b, arguments, c, d) {}", SyntaxError);
105 CheckStrictMode("var o = { set foo(eval) {} }", SyntaxError);
108 CheckStrictMode("var o = { set foo(arguments) {} }", SyntaxError);
111 CheckStrictMode("function foo(a, b, c, d, b) {}", SyntaxError);
124 CheckStrictMode("try{}catch(eval){};", SyntaxError);
[all …]
/external/chromium-trace/catapult/catapult_build/
Djs_checks_unittest.py23 [], js_checks.CheckStrictMode(contents, is_html_file=True))
30 [], js_checks.CheckStrictMode(contents, is_html_file=True))
39 [], js_checks.CheckStrictMode(contents, is_html_file=False))
51 [], js_checks.CheckStrictMode(contents, is_html_file=False))
58 [], js_checks.CheckStrictMode(contents, is_html_file=True))
70 1, len(js_checks.CheckStrictMode(contents, is_html_file=True)))
78 1, len(js_checks.CheckStrictMode(contents, is_html_file=False)))
Djs_checks.py144 error_lines += CheckStrictMode(
187 def CheckStrictMode(contents, is_html_file=False): function