/external/v8/test/mjsunit/regress/ |
D | regress-219.js | 60 assertThrows("/a/ii"); 62 assertThrows("/a/gii"); 64 assertThrows("/a/igi"); 66 assertThrows("/a/iig"); 68 assertThrows("/a/gimi"); 70 assertThrows("/a/giim"); 72 assertThrows("/a/igim"); 74 assertThrows(function(){ return RegExp("a", "ii"); }) 76 assertThrows(function(){ return RegExp("a", "gii"); }) 78 assertThrows(function(){ return RegExp("a", "igi"); }) [all …]
|
D | regress-87.js | 36 assertThrows("/x/\\u0067"); 37 assertThrows("/x/\\u0069"); 38 assertThrows("/x/\\u006d"); 40 assertThrows("/x/\\u0067i"); 41 assertThrows("/x/\\u0069m"); 42 assertThrows("/x/\\u006dg"); 44 assertThrows("/x/m\\u0067"); 45 assertThrows("/x/g\\u0069"); 46 assertThrows("/x/i\\u006d"); 48 assertThrows("/x/m\\u0067i"); [all …]
|
D | regress-1620.js | 36 assertThrows("var \\u\\u\\u = 42;"); 37 assertThrows("var \\u41 = 42;"); 38 assertThrows("var \\u123 = 42;"); 41 assertThrows("var uuu = 42; var x = \\u\\u\\u"); 50 assertThrows("/x/g\\uim", SyntaxError); 51 assertThrows("/x/g\\u2im", SyntaxError); 52 assertThrows("/x/g\\u22im", SyntaxError); 53 assertThrows("/x/g\\u222im", SyntaxError); 54 assertThrows("/x/g\\\\u2222im", SyntaxError);
|
D | regress-1415.js | 30 assertThrows(function(){ decodeURIComponent("%ED%A0%80"); }, URIError); 32 assertThrows(function(){ decodeURIComponent("%ED%AF%BF"); }, URIError); 34 assertThrows(function(){ decodeURIComponent("%ED%B0%80"); }, URIError); 36 assertThrows(function(){ decodeURIComponent("%ED%BF%BF"); }, URIError); 40 assertThrows(function(){ decodeURIComponent("%C1%BF"); }, URIError); 42 assertThrows(function(){ decodeURIComponent("%E0%9F%BF"); }, URIError);
|
D | regress-603.js | 33 assertThrows(function() { 39 assertThrows(function() { 44 assertThrows(function() { 49 assertThrows(function() { 55 assertThrows(function() { 61 assertThrows(function() {
|
D | regress-1924.js | 33 assertThrows("a: break a a", SyntaxError) 34 assertThrows("a: break a 1", SyntaxError) 35 assertThrows("a: break a ''", SyntaxError) 36 assertThrows("a: break a var b", SyntaxError) 37 assertThrows("a: break a {}", SyntaxError)
|
D | regress-1112051.js | 30 assertThrows("f.call.apply()"); 31 assertThrows("f.call.apply(null)"); 32 assertThrows("f.call.apply(null, [], 0)"); 33 assertThrows("f.call.apply(null, [1,2,3,4,5,6,7,8,9], 0)");
|
D | regress-95920.js | 32 assertThrows(function() { 39 assertThrows(function() { 46 assertThrows(function() { 53 assertThrows(function() {
|
D | regress-1122.js | 65 assertThrows("function_with_n_params_and_m_args(35000, 35000)"); 66 assertThrows("function_with_n_params_and_m_args(100000, 100000)"); 67 assertThrows("function_with_n_params_and_m_args(35000, 30000)"); 68 assertThrows("function_with_n_params_and_m_args(30000, 35000)");
|
D | regress-1365.js | 43 assertThrows(callGlobalValueOf); 44 assertThrows(callGlobalHasOwnProperty); 50 assertThrows(callGlobalValueOf); 51 assertThrows(callGlobalHasOwnProperty);
|
/external/v8/test/mjsunit/ |
D | invalid-lhs.js | 32 assertThrows("12 = 12"); 33 assertThrows("x++ = 12"); 34 assertThrows("eval('var x') = 12"); 38 assertThrows("12++"); 39 assertThrows("12--"); 40 assertThrows("--12"); 41 assertThrows("++12"); 42 assertThrows("++(eval('12'))"); 43 assertThrows("(eval('12'))++"); 48 assertThrows("for (12 in [1]) print(12);"); [all …]
|
D | strict-mode.js | 30 assertThrows("'use strict';\n" + code, exception); 31 assertThrows('"use strict";\n' + code, exception); 38 assertThrows("\ 59 assertThrows(function() { 71 assertThrows("function foo (x) 'use strict'; {}", SyntaxError); 81 assertThrows('\ 136 assertThrows('\ 163 assertThrows('\ 192 assertThrows("var x = { get foo() { }, get foo() { } };", SyntaxError); 193 assertThrows("var x = { get foo(){}, get 'foo'(){}};", SyntaxError); [all …]
|
D | d8-os.js | 76 assertThrows("os.system('ls', [TEST_DIR + '/dir/bar']);", "dir not there"); 89 assertThrows("os.mkdirp(TEST_DIR + '/file1');", "mkdir over file1"); 90 assertThrows("os.mkdirp(TEST_DIR + '/file1/foo');", "mkdir over file2"); 91 assertThrows("os.mkdirp(TEST_DIR + '/file1/');", "mkdir over file3"); 92 assertThrows("os.mkdirp(TEST_DIR + '/file1/foo/');", "mkdir over file4"); 96 assertThrows("os.chdir(TEST_DIR + '/dir4');", "chdir dir4 I"); 98 assertThrows("os.chdir(TEST_DIR + '/dir4');", "chdir dir4 II"); 106 assertThrows("os.chdir(TEST_DIR + '/dir5');", "cd dir5 I"); 108 assertThrows("os.chdir(TEST_DIR + '/dir5');", "chdir dir5 II"); 132 assertThrows("os.system('sleep', ['2000'], 200);", "sleep 1"); [all …]
|
D | keywords-and-reserved_words.js | 80 assertThrows("var " + word + " = 1;", SyntaxError); 82 assertThrows("typeof (" + word + ");", SyntaxError); 96 assertThrows("function " + word + " () { }", SyntaxError); 97 assertThrows("function foo (" + word + ") {}", SyntaxError); 98 assertThrows("function foo (a, " + word + ") { }", SyntaxError); 99 assertThrows("function foo (" + word + ", a) { }", SyntaxError); 100 assertThrows("function foo (a, " + word + ", b) { }", SyntaxError); 101 assertThrows("var foo = function (" + word + ") { }", SyntaxError); 104 assertThrows("var x = { set foo(" + word + ") { } };", SyntaxError);
|
D | delay-syntax-error.js | 36 assertThrows("if (false) break;"); 37 assertThrows("if (false) continue;"); 40 assertThrows("return;"); 41 assertThrows("break;"); 42 assertThrows("continue;");
|
D | array-length-number-conversion.js | 49 assertThrows("var y = []; y.length = 'abc';"); 50 assertThrows("var y = []; y.length = undefined;"); 51 assertThrows("var y = []; y.length = {};"); 52 assertThrows("var y = []; y.length = -1;"); 53 assertThrows("var y = []; y.length = {valueOf:function() { throw new Error(); }};");
|
D | if-in-undefined.js | 33 assertThrows("if ('p' in undefined) { }"); 34 assertThrows("if ('p' in null) { }") 35 assertThrows("if ('p' in true) { }"); 36 assertThrows("if ('p' in 5) { }");
|
D | array-join.js | 57 assertThrows("a.join('')"); 58 assertThrows("a.join('*')"); 59 assertThrows("a.join('**')"); 60 assertThrows("a.join('****')"); 61 assertThrows("a.join('********')"); 62 assertThrows("a.join('**********')");
|
D | call-non-function.js | 60 assertThrows(WillThrow); 61 assertThrows(WillThrow); 62 assertThrows(WillThrow); 63 assertThrows(WillThrow);
|
D | getter-in-prototype.js | 41 assertThrows(function() { 'use strict'; o.x = 42; }); 42 assertThrows(function() { 'use strict'; o[0] = 42; }); 65 assertThrows(g_strict); 78 assertThrows(g2_strict);
|
/external/v8/test/mjsunit/harmony/ |
D | proxies-function.js | 280 assertThrows(function(){ f(11) }, "myexn") 281 assertThrows(function(){ ({x: f}).x(11) }, "myexn") 282 assertThrows(function(){ ({x: f})["x"](11) }, "myexn") 283 assertThrows(function(){ Function.prototype.call.call(f, {}, 2) }, "myexn") 284 assertThrows(function(){ Function.prototype.apply.call(f, {}, [1]) }, "myexn") 285 assertThrows(function(){ %Call({}, f) }, "myexn") 286 assertThrows(function(){ %Call({}, 1, 2, f) }, "myexn") 287 assertThrows(function(){ %Apply({}, f, [], 3, 0) }, "myexn") 288 assertThrows(function(){ %Apply({}, f, [3, 4], 0, 1) }, "myexn") 289 assertThrows(function(){ %_CallFunction({}, f) }, "myexn") [all …]
|
D | proxies-example-membrane.js | 249 assertThrows(function() { w.a }, Error); 250 assertThrows(function() { w.r }, Error); 251 assertThrows(function() { w.r = {a: 4} }, Error); 252 assertThrows(function() { o.r.a }, Error); 256 assertThrows(function() { w[1] }, Error); 257 assertThrows(function() { w.c }, Error); 258 assertThrows(function() { wb.bb }, Error); 259 assertThrows(function() { wr.a }, Error); 260 assertThrows(function() { wf(4) }, Error); 261 assertThrows(function() { wfx.a }, Error); [all …]
|
D | block-for.js | 97 assertThrows("function foo() { 'use strict'; for (let in {}) { } }", SyntaxError); 98 assertThrows("function foo() { 'use strict'; for (let x = 3 in {}) { } }", SyntaxError); 99 assertThrows("function foo() { 'use strict'; for (let x, y in {}) { } }", SyntaxError); 100 assertThrows("function foo() { 'use strict'; for (let x = 3, y in {}) { } }", SyntaxError); 101 assertThrows("function foo() { 'use strict'; for (let x, y = 4 in {}) { } }", SyntaxError); 102 assertThrows("function foo() { 'use strict'; for (let x = 3, y = 4 in {}) { } }", SyntaxError);
|
D | proxies.js | 93 assertThrows(function(){ Object.getOwnPropertyDescriptor(p, "a") }, "myexn") 94 assertThrows(function(){ Object.getOwnPropertyDescriptor(p, 77) }, "myexn") 299 assertThrows(function(){ p.a }, "myexn") 300 assertThrows(function(){ p["b"] }, "myexn") 301 assertThrows(function(){ p[3] }, "myexn") 302 assertThrows(function(){ (function(n) { p[n] })("c") }, "myexn") 303 assertThrows(function(){ (function(n) { p[n] })(99) }, "myexn") 306 assertThrows(function(){ o.a }, "myexn") 307 assertThrows(function(){ o["b"] }, "myexn") 308 assertThrows(function(){ o[3] }, "myexn") [all …]
|
/external/v8/test/mjsunit/third_party/ |
D | object-keys.js | 34 assertThrows(function () { Object.keys(2) }, TypeError); 35 assertThrows(function () { Object.keys("foo") }, TypeError); 36 assertThrows(function () { Object.keys(null) }, TypeError); 37 assertThrows(function () { Object.keys(undefined) }, TypeError);
|