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
268 B

  1. "use strict";
  2. var keys = require("./keys");
  3. module.exports = function (obj) {
  4. var error;
  5. keys(obj).forEach(function (key) {
  6. try {
  7. delete this[key];
  8. } catch (e) {
  9. if (!error) error = e;
  10. }
  11. }, obj);
  12. if (error !== undefined) throw error;
  13. return obj;
  14. };