Lines Matching refs:method
43 function assertEqualName(method) {
45 assert.strictEqual(console[method].name, method);
47 assert.strictEqual(console[method].name, alternateNames[method]);
50 assert.strictEqual(newInstance[method].name, method);
52 assert.strictEqual(newInstance[method].name, alternateNames[method]);
56 for (const method of methods) {
57 assertEqualName(method);
59 assert.throws(() => new console[method](), err);
60 assert.throws(() => new newInstance[method](), err);
61 assert.throws(() => Reflect.construct({}, [], console[method]), err);
62 assert.throws(() => Reflect.construct({}, [], newInstance[method]), err);