2017-09-11 09:57:38 -04:00
|
|
|
'use strict';
|
|
|
|
const common = require('../../common');
|
|
|
|
const assert = require('assert');
|
|
|
|
|
|
|
|
// Testing api calls for a constructor that defines properties
|
2018-01-23 21:49:25 +11:00
|
|
|
const TestConstructor =
|
2018-11-17 12:34:54 -08:00
|
|
|
require(`./build/${common.buildType}/test_constructor`).constructorName;
|
2017-09-11 09:57:38 -04:00
|
|
|
assert.strictEqual(TestConstructor.name, 'MyObject');
|