13 lines
251 B
JavaScript
13 lines
251 B
JavaScript
'use strict';
|
|
|
|
var d = require('d')
|
|
|
|
, defineProperty = Object.defineProperty;
|
|
|
|
module.exports = function (T, a) {
|
|
var symbol = T('test'), x = {};
|
|
defineProperty(x, symbol, d('foo'));
|
|
a(x.test, undefined, "Name");
|
|
a(x[symbol], 'foo', "Get");
|
|
};
|