web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
317 B

  1. "use strict";
  2. module.exports = function (t, a) {
  3. // Just sanity checks, as logic is tested at isPlainFunction
  4. var obj = {};
  5. a(t(obj), obj, "Reguar object instance");
  6. obj = Object.create(null);
  7. a(t(obj), obj, "Null prototype");
  8. a.throws(
  9. function () {
  10. t(function () {});
  11. },
  12. TypeError,
  13. "Error"
  14. );
  15. };