Webpack build for branch custom-structures: 6d53d893a8

This commit is contained in:
Travis CI 2017-11-20 03:50:24 +00:00
parent 0156cda8e1
commit e855a4b0e4
2 changed files with 2 additions and 2 deletions

View file

@ -9626,7 +9626,7 @@ class Structures {
* }
* );
*/
extend(name, extender) {
static extend(name, extender) {
if (!structures[name]) throw new RangeError(`"${name}" is not a valid extensible structure.`);
if (typeof extender !== 'function') {
throw new TypeError('The extender must be a function that returns the extended structure class/prototype.');

File diff suppressed because one or more lines are too long