Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

15 linhas
356 B

  1. 'use strict';
  2. var GetIntrinsic = require('../GetIntrinsic');
  3. var $TypeError = GetIntrinsic('%TypeError%');
  4. // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
  5. module.exports = function CheckObjectCoercible(value, optMessage) {
  6. if (value == null) {
  7. throw new $TypeError(optMessage || ('Cannot call method on ' + value));
  8. }
  9. return value;
  10. };