summaryrefslogtreecommitdiff
path: root/js/src/builtin/ModuleObject.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-11-28 10:18:10 +0000
committerMoonchild <moonchild@palemoon.org>2020-11-28 10:18:10 +0000
commit060e3eb0c8163698b52d59e333d9c4496c78a2c2 (patch)
tree7f23ae89939b79400774643c0e7a658b0ce7cb36 /js/src/builtin/ModuleObject.h
parent15914ec5780e7867ab508a48a83311c56950f8a9 (diff)
downloaduxp-060e3eb0c8163698b52d59e333d9c4496c78a2c2.tar.gz
Revert "Issue #1691 - Part 1: Provide a way of associating a private value with a script"
This reverts commit 15914ec5780e7867ab508a48a83311c56950f8a9.
Diffstat (limited to 'js/src/builtin/ModuleObject.h')
-rw-r--r--js/src/builtin/ModuleObject.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/src/builtin/ModuleObject.h b/js/src/builtin/ModuleObject.h
index c2514e876d..dc078e6b28 100644
--- a/js/src/builtin/ModuleObject.h
+++ b/js/src/builtin/ModuleObject.h
@@ -219,7 +219,7 @@ class ModuleObject : public NativeObject
NamespaceSlot,
StatusSlot,
EvaluationErrorSlot,
- ScriptSourceObjectSlot,
+ HostDefinedSlot,
RequestedModulesSlot,
ImportEntriesSlot,
LocalExportEntriesSlot,
@@ -271,7 +271,7 @@ class ModuleObject : public NativeObject
ModuleStatus status() const;
bool hadEvaluationError() const;
Value evaluationError() const;
- ScriptSourceObject* scriptSourceObject() const;
+ Value hostDefinedField() const;
ArrayObject& requestedModules() const;
ArrayObject& importEntries() const;
ArrayObject& localExportEntries() const;
@@ -284,6 +284,8 @@ class ModuleObject : public NativeObject
static bool Instantiate(JSContext* cx, HandleModuleObject self);
static bool Evaluate(JSContext* cx, HandleModuleObject self);
+ void setHostDefinedField(const JS::Value& value);
+
// For BytecodeEmitter.
bool noteFunctionDeclaration(ExclusiveContext* cx, HandleAtom name, HandleFunction fun);