forked from BrowserWorks/Waterfox-Classic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1476921 - Don't throw an error in GetModuleNamespace for errored …
…modules. r=jonco
- Loading branch information
Showing
3 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use strict"; | ||
|
||
load(libdir + "asserts.js"); | ||
load(libdir + "dummyModuleResolveHook.js"); | ||
|
||
class UniqueError extends Error {} | ||
|
||
let a = moduleRepo['a'] = parseModule(` | ||
throw new UniqueError(); | ||
`); | ||
|
||
let b = moduleRepo['b'] = parseModule(` | ||
import * as ns0 from "a"; | ||
`); | ||
|
||
a.declarationInstantiation(); | ||
assertThrowsInstanceOf(() => a.evaluation(), UniqueError); | ||
b.declarationInstantiation(); | ||
assertThrowsInstanceOf(() => b.evaluation(), UniqueError); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters