summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-07 12:27:02 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-10 18:31:16 +0000
commite29a8bd113594a55d5087989c90317cc86d03f48 (patch)
tree76c7a20724b0ab23fb5e6ee8ed25888df89ea55e
parent83abc5af599d4531c68c2e7a84caab9545854594 (diff)
downloadUXP-e29a8bd113594a55d5087989c90317cc86d03f48.tar
UXP-e29a8bd113594a55d5087989c90317cc86d03f48.tar.gz
UXP-e29a8bd113594a55d5087989c90317cc86d03f48.tar.lz
UXP-e29a8bd113594a55d5087989c90317cc86d03f48.tar.xz
UXP-e29a8bd113594a55d5087989c90317cc86d03f48.zip
Issue #618 - Fix typo and remove old function declarations.
-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 b3365b505..64d62d216 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 09193c9ca..30e7120c0 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