Home
last modified time | relevance | path

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

/external/v8/test/webkit/
Dclass-syntax-semicolon.js35 shouldNotThrow("class A { ; }");
36 shouldNotThrow("class A { foo() { } ; }");
37 shouldNotThrow("class A { get foo() { } ; }");
38 shouldNotThrow("class A { set foo(x) { } ; }");
39 shouldNotThrow("class A { static foo() { } ; }");
40 shouldNotThrow("class A { static get foo() { } ; }");
41 shouldNotThrow("class A { static set foo(x) { } ; }");
43 shouldNotThrow("class A { ; foo() { } }");
44 shouldNotThrow("class A { ; get foo() { } }");
45 shouldNotThrow("class A { ; set foo(x) { } }");
[all …]
Dclass-syntax-extends.js53 shouldNotThrow('x = class extends Base { }');
54 shouldNotThrow('x = class extends Base { constructor() { } }');
63 shouldNotThrow('baseWithBadPrototype = function () {}; baseWithBadPrototype.prototype = 3; new base…
65 shouldNotThrow('baseWithBadPrototype.prototype = "abc"');
67 shouldNotThrow('baseWithBadPrototype.prototype = null; x = class extends baseWithBadPrototype { con…
76 shouldNotThrow('namespace = {}; namespace.A = class { }; namespace.B = class extends namespace.A { …
77 shouldNotThrow('namespace = {}; namespace.A = class A { }; namespace.B = class B extends namespace.…
78 shouldNotThrow('namespace = {}; namespace.A = class { constructor() { } }; namespace.B = class exte…
79 shouldNotThrow('namespace = {}; namespace.A = class A { constructor() { } }; namespace.B = class B …
80 shouldNotThrow('namespace = {}; namespace.A = class { constructor() { } }; namespace.B = class exte…
[all …]
Dclass-syntax-declaration.js59 shouldNotThrow("class X {}");
64 shouldNotThrow("class X { constructor() {} static constructor() { return staticMethodValue; } }");
70 shouldNotThrow("class X { constructor() {} prototype() { return instanceMethodValue; } }");
73 shouldNotThrow("class X { constructor() {} set foo(a) {} }");
74 shouldNotThrow("class X { constructor() {} set foo({x, y}) {} }");
77 shouldNotThrow("class X { constructor() {} get foo() {} }");
Dclass-syntax-expression.js57 shouldNotThrow("x = class {}");
62 shouldNotThrow("x = class { constructor() {} static constructor() { return staticMethodValue; } }");
68 shouldNotThrow("x = class { constructor() {} prototype() { return instanceMethodValue; } }");
71 shouldNotThrow("x = class { constructor() {} set foo(a) {} }");
72 shouldNotThrow("x = class { constructor() {} set foo({x, y}) {} }");
75 shouldNotThrow("x = class { constructor() {} get foo() {} }");
Dclass-syntax-call.js29 shouldNotThrow('new A');
31 shouldNotThrow('new B');
33 shouldNotThrow('new (class { constructor() {} })()');
Dclass-syntax-super.js62 shouldNotThrow('x = class extends Base { constructor() { super(); } super() {} }');
69 shouldNotThrow('x = class extends Base { constructor() { super(); } method1() { delete (super.foo) …
Dclass-syntax-name.js42 shouldNotThrow(statement);
43 shouldNotThrow("'use strict'; " + statement);
Dclass-constructor-return.js176 shouldNotThrow('(new DerivedNoSuperReturnObject)');
177 shouldNotThrow('(new DerivedNoSuperReturnObject2)');
/external/v8/test/webkit/resources/
Dstandalone-pre.js181 function shouldNotThrow(_a) function