es.symbol.to-primitive.js 441 B

1234567891011
  1. 'use strict';
  2. var defineWellKnownSymbol = require('../internals/well-known-symbol-define');
  3. var defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive');
  4. // `Symbol.toPrimitive` well-known symbol
  5. // https://tc39.es/ecma262/#sec-symbol.toprimitive
  6. defineWellKnownSymbol('toPrimitive');
  7. // `Symbol.prototype[@@toPrimitive]` method
  8. // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
  9. defineSymbolToPrimitive();