refactor(OutputAst): BuiltinMethod.bind renamed to Bind (#10739)
This commit is contained in:
@ -95,7 +95,7 @@ export function main() {
|
||||
|
||||
expect(
|
||||
emitStmt(
|
||||
o.variable('fn').callMethod(o.BuiltinMethod.bind, [o.variable('someObj')]).toStmt()))
|
||||
o.variable('fn').callMethod(o.BuiltinMethod.Bind, [o.variable('someObj')]).toStmt()))
|
||||
.toEqual('fn.bind(someObj);');
|
||||
});
|
||||
|
||||
|
@ -113,7 +113,7 @@ var _getExpressionsStmts: o.Statement[] = [
|
||||
'invokeMethodExternalInstanceViaBind',
|
||||
o.variable('externalInstance')
|
||||
.prop('someMethod')
|
||||
.callMethod(o.BuiltinMethod.bind, [o.variable('externalInstance')])
|
||||
.callMethod(o.BuiltinMethod.Bind, [o.variable('externalInstance')])
|
||||
.callFn([o.literal('someParam')])
|
||||
],
|
||||
[
|
||||
@ -124,7 +124,7 @@ var _getExpressionsStmts: o.Statement[] = [
|
||||
'invokeMethodDynamicInstanceViaBind',
|
||||
o.variable('dynamicInstance')
|
||||
.prop('dynamicMethod')
|
||||
.callMethod(o.BuiltinMethod.bind, [o.variable('dynamicInstance')])
|
||||
.callMethod(o.BuiltinMethod.Bind, [o.variable('dynamicInstance')])
|
||||
.callFn([o.literal('someParam')])
|
||||
],
|
||||
[
|
||||
|
@ -97,7 +97,7 @@ export function main() {
|
||||
|
||||
expect(
|
||||
emitStmt(
|
||||
o.variable('fn').callMethod(o.BuiltinMethod.bind, [o.variable('someObj')]).toStmt()))
|
||||
o.variable('fn').callMethod(o.BuiltinMethod.Bind, [o.variable('someObj')]).toStmt()))
|
||||
.toEqual('fn.bind(someObj);');
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user