mirror of https://gitee.com/bigwinds/arangodb
Extend will not be removed in 2.9
This commit is contained in:
parent
9c4bb1500d
commit
8b66bf1143
|
@ -1,9 +1,7 @@
|
|||
'use strict';
|
||||
const extend = require('underscore').extend;
|
||||
const deprecated = require('@arangodb/deprecated');
|
||||
|
||||
exports.extend = function (protoProps, staticProps) {
|
||||
deprecated('2.9', '"extend" is deprecated, use class syntax instead');
|
||||
const init = protoProps.constructor;
|
||||
const Class = class extends this {
|
||||
constructor(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
||||
|
|
Loading…
Reference in New Issue