Home
last modified time | relevance | path

Searched refs:shouldNotThrow (Results 1 – 9 of 9) sorted by relevance

/external/v8/test/webkit/
Dclass-syntax-semicolon.js37 shouldNotThrow("class A { ; }");
38 shouldNotThrow("class A { foo() { } ; }");
39 shouldNotThrow("class A { get foo() { } ; }");
40 shouldNotThrow("class A { set foo(x) { } ; }");
41 shouldNotThrow("class A { static foo() { } ; }");
42 shouldNotThrow("class A { static get foo() { } ; }");
43 shouldNotThrow("class A { static set foo(x) { } ; }");
45 shouldNotThrow("class A { ; foo() { } }");
46 shouldNotThrow("class A { ; get foo() { } }");
47 shouldNotThrow("class A { ; set foo(x) { } }");
[all …]
Dclass-syntax-extends.js55 shouldNotThrow('x = class extends Base { }');
56 shouldNotThrow('x = class extends Base { constructor() { } }');
65 shouldNotThrow('baseWithBadPrototype = function () {}; baseWithBadPrototype.prototype = 3; new base…
67 shouldNotThrow('baseWithBadPrototype.prototype = "abc"');
69 shouldNotThrow('baseWithBadPrototype.prototype = null; x = class extends baseWithBadPrototype { con…
78 shouldNotThrow('namespace = {}; namespace.A = class { }; namespace.B = class extends namespace.A { …
79 shouldNotThrow('namespace = {}; namespace.A = class A { }; namespace.B = class B extends namespace.…
80 shouldNotThrow('namespace = {}; namespace.A = class { constructor() { } }; namespace.B = class exte…
81 shouldNotThrow('namespace = {}; namespace.A = class A { constructor() { } }; namespace.B = class B …
82 shouldNotThrow('namespace = {}; namespace.A = class { constructor() { } }; namespace.B = class exte…
[all …]
Dclass-syntax-declaration.js61 shouldNotThrow("class X {}");
66 shouldNotThrow("class X { constructor() {} static constructor() { return staticMethodValue; } }");
72 shouldNotThrow("class X { constructor() {} prototype() { return instanceMethodValue; } }");
75 shouldNotThrow("class X { constructor() {} set foo(a) {} }");
76 shouldNotThrow("class X { constructor() {} set foo({x, y}) {} }");
79 shouldNotThrow("class X { constructor() {} get foo() {} }");
Dclass-syntax-expression.js59 shouldNotThrow("x = class {}");
64 shouldNotThrow("x = class { constructor() {} static constructor() { return staticMethodValue; } }");
70 shouldNotThrow("x = class { constructor() {} prototype() { return instanceMethodValue; } }");
73 shouldNotThrow("x = class { constructor() {} set foo(a) {} }");
74 shouldNotThrow("x = class { constructor() {} set foo({x, y}) {} }");
77 shouldNotThrow("x = class { constructor() {} get foo() {} }");
Dclass-syntax-call.js31 shouldNotThrow('new A');
33 shouldNotThrow('new B');
35 shouldNotThrow('new (class { constructor() {} })()');
Dclass-syntax-super.js64 shouldNotThrow('x = class extends Base { constructor() { super(); } super() {} }');
71 shouldNotThrow('x = class extends Base { constructor() { super(); } method1() { delete (super.foo) …
Dclass-syntax-name.js44 shouldNotThrow(statement);
45 shouldNotThrow("'use strict'; " + statement);
Dclass-constructor-return.js178 shouldNotThrow('(new DerivedNoSuperReturnObject)');
179 shouldNotThrow('(new DerivedNoSuperReturnObject2)');
/external/v8/test/webkit/resources/
Dstandalone-pre.js181 function shouldNotThrow(_a) function