summaryrefslogtreecommitdiffstats
path: root/dom/script/ModuleScript.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-04 10:35:22 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-10 18:30:30 +0000
commit1e14031a5940f6846f6ecce1b3c889b6a3d9b67a (patch)
tree24576100e20b270c9a027345d996996104809c38 /dom/script/ModuleScript.h
parent765c90318f192ba18848095133b0531c3162678d (diff)
downloadUXP-1e14031a5940f6846f6ecce1b3c889b6a3d9b67a.tar
UXP-1e14031a5940f6846f6ecce1b3c889b6a3d9b67a.tar.gz
UXP-1e14031a5940f6846f6ecce1b3c889b6a3d9b67a.tar.lz
UXP-1e14031a5940f6846f6ecce1b3c889b6a3d9b67a.tar.xz
UXP-1e14031a5940f6846f6ecce1b3c889b6a3d9b67a.zip
Issue #618 - Remove eager instantiation
This backs out the stuff added in Bug 1295978. Ref: BZ 1295978, 1388728
Diffstat (limited to 'dom/script/ModuleScript.h')
-rw-r--r--dom/script/ModuleScript.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/dom/script/ModuleScript.h b/dom/script/ModuleScript.h
index dd0d07e84..97fdb8ed1 100644
--- a/dom/script/ModuleScript.h
+++ b/dom/script/ModuleScript.h
@@ -20,17 +20,9 @@ class ScriptLoader;
class ModuleScript final : public nsISupports
{
- enum InstantiationState {
- Uninstantiated,
- Instantiated,
- Errored
- };
-
RefPtr<ScriptLoader> mLoader;
nsCOMPtr<nsIURI> mBaseURL;
JS::Heap<JSObject*> mModuleRecord;
- JS::Heap<JS::Value> mException;
- InstantiationState mInstantiationState;
~ModuleScript();
@@ -44,20 +36,8 @@ public:
ScriptLoader* Loader() const { return mLoader; }
JSObject* ModuleRecord() const { return mModuleRecord; }
- JS::Value Exception() const { return mException; }
nsIURI* BaseURL() const { return mBaseURL; }
- void SetInstantiationResult(JS::Handle<JS::Value> aMaybeException);
- bool IsUninstantiated() const {
- return mInstantiationState == Uninstantiated;
- }
- bool IsInstantiated() const {
- return mInstantiationState == Instantiated;
- }
- bool InstantiationFailed() const {
- return mInstantiationState == Errored;
- }
-
void UnlinkModuleRecord();
};