From e29a8bd113594a55d5087989c90317cc86d03f48 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Tue, 7 Jul 2020 12:27:02 +0000 Subject: Issue #618 - Fix typo and remove old function declarations. --- js/src/builtin/Module.js | 2 +- js/src/builtin/ModuleObject.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/js/src/builtin/Module.js b/js/src/builtin/Module.js index b3365b505d..64d62d2160 100644 --- a/js/src/builtin/Module.js +++ b/js/src/builtin/Module.js @@ -509,7 +509,7 @@ function ResolutionError(resolution, kind, name, line, column) function ModuleEvaluate() { if (!IsObject(this) || !IsModule(this)) - return callFunction(CallModuleMethodIfWrapped, this, "ModuleEvaluatie"); + return callFunction(CallModuleMethodIfWrapped, this, "ModuleEvaluate"); // Step 1 let module = this; diff --git a/js/src/builtin/ModuleObject.cpp b/js/src/builtin/ModuleObject.cpp index 09193c9ca1..30e7120c06 100644 --- a/js/src/builtin/ModuleObject.cpp +++ b/js/src/builtin/ModuleObject.cpp @@ -1034,8 +1034,6 @@ GlobalObject::initModuleProto(JSContext* cx, Handle global) static const JSFunctionSpec protoFunctions[] = { JS_SELF_HOSTED_FN("getExportedNames", "ModuleGetExportedNames", 1, 0), JS_SELF_HOSTED_FN("resolveExport", "ModuleResolveExport", 2, 0), - JS_SELF_HOSTED_FN("declarationInstantiation", "ModuleDeclarationInstantiation", 0, 0), - JS_SELF_HOSTED_FN("evaluation", "ModuleEvaluation", 0, 0), JS_SELF_HOSTED_FN("declarationInstantiation", "ModuleInstantiate", 0, 0), JS_SELF_HOSTED_FN("evaluation", "ModuleEvaluate", 0, 0), JS_FS_END -- cgit v1.2.3