Skip to content

Commit d33c0cd

Browse files
author
John Messerly
committed
Merge pull request #416 from dart-lang/runtime-fix
Fix build after runtime commit (bad merge)
2 parents 3886194 + 940cb14 commit d33c0cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/dev_compiler/tool/input_sdk/private/operations.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ throwNoSuchMethodFunc(obj, name, pArgs, opt_func) => JS('', '''(() => {
8585
})()''');
8686

8787
checkAndCall(f, ftype, obj, args, name) => JS('', '''(() => {
88+
let originalFunction = $f;
8889
if (!($f instanceof Function)) {
8990
// We're not a function (and hence not a method either)
9091
// Grab the `call` method if it's not a function.
@@ -93,7 +94,7 @@ checkAndCall(f, ftype, obj, args, name) => JS('', '''(() => {
9394
$f = $f.call;
9495
}
9596
if (!($f instanceof Function)) {
96-
$throwNoSuchMethodFunc($obj, $name, $args);
97+
$throwNoSuchMethodFunc($obj, $name, $args, originalFunction);
9798
}
9899
}
99100
// If f is a function, but not a method (no method type)
@@ -115,7 +116,7 @@ checkAndCall(f, ftype, obj, args, name) => JS('', '''(() => {
115116
116117
// TODO(leafp): throw a type error (rather than NSM)
117118
// if the arity matches but the types are wrong.
118-
$throwNoSuchMethodFunc($obj, $name, $args, $f);
119+
$throwNoSuchMethodFunc($obj, $name, $args, originalFunction);
119120
})()''');
120121

121122
dcall(f, @rest args) => JS('', '''(() => {

0 commit comments

Comments
 (0)