Skip to content

Commit 8decac5

Browse files
committed
display native function descriptor when unimplemented
1 parent b746261 commit 8decac5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ec-evaluator/interpreter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,11 @@ export const cmdEvaluators: { [type: string]: CmdEvaluator } = {
506506

507507
// Native function escape hatch
508508
if (closure.mtdOrCon.kind === 'MethodDeclaration' && isNative(closure.mtdOrCon)) {
509-
const nativeFn = natives[getFullyQualifiedDescriptor(closure.mtdOrCon)]
509+
const nativeFnDescriptor = getFullyQualifiedDescriptor(closure.mtdOrCon)
510+
const nativeFn = natives[nativeFnDescriptor]
510511

511512
if (!nativeFn) {
512-
throw new errors.UndefinedNativeMethod(nativeFn)
513+
throw new errors.UndefinedNativeMethod(nativeFnDescriptor)
513514
}
514515

515516
// call foreign fn

0 commit comments

Comments
 (0)