Created
April 2, 2017 08:02
-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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