Skip to content

Instantly share code, notes, and snippets.

@pateketrueke
Created April 2, 2017 08:02
Show Gist options
  • Save pateketrueke/a22ef3b406372efad46cdab74b25727a to your computer and use it in GitHub Desktop.
Save pateketrueke/a22ef3b406372efad46cdab74b25727a to your computer and use it in GitHub Desktop.
Ctor.toString() breaks on environments where Reflect.ownKeys is undefined (e.g. node v4.8.1)
// this "can" simulate the real issue behind
global.Reflect = global.Reflect || {};
global.Reflect.ownKeys = null;
// this will call `Ctor.toString()` at some point,
// and there will be dragons (fix with String(Ctor) huh?)
require('vue-template-compiler');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment