| 98 | }; |
| 99 | |
| 100 | const testMethod = (obj, clazz) => { |
| 101 | assert.strictEqual(obj.testMethod('method'), 'method instance'); |
| 102 | assert.strictEqual(obj[clazz.kTestMethodInternal]('method'), 'method instance internal'); |
| 103 | obj.testVoidMethodT('method<>(const char*)'); |
| 104 | assert.strictEqual(obj.testMethodT(), 'method<>(const char*)'); |
| 105 | obj[clazz.kTestVoidMethodTInternal]('method<>(Symbol)'); |
| 106 | assert.strictEqual(obj[clazz.kTestMethodTInternal](), 'method<>(Symbol)'); |
| 107 | assert.throws(() => clazz.prototype.testMethod('method')); |
| 108 | assert.throws(() => clazz.prototype.testMethodT()); |
| 109 | assert.throws(() => clazz.prototype.testVoidMethodT('method<>(const char*)')); |
| 110 | }; |
| 111 | |
| 112 | const testEnumerables = (obj, clazz) => { |
| 113 | // Object.keys: only object without prototype |