summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-07 12:27:02 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-07 12:27:02 +0000
commite378530bcaa63d46083879d746dec6b8c3a44d0b (patch)
treed6df2d2e2b6e2404d7619278107b425c617da189 /js
parent2dff89b658d6ab2592865c226f3f1078f418151d (diff)
downloaduxp-e378530bcaa63d46083879d746dec6b8c3a44d0b.tar.gz
Issue #618 - Fix typo and remove old function declarations.
Diffstat (limited to 'js')
-rw-r--r--js/src/builtin/Module.js2
-rw-r--r--js/src/builtin/ModuleObject.cpp2
2 files changed, 1 insertions, 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<GlobalObject*> 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